INNER CODE UNIT · JavaScript

init

JarvusInnovations/lapidus · src/mongo-worker.js:6

function init(config) {
    'use strict';

    console.log(`MongoDB: Connecting to ${config.database} on ${config.hostname} as ${config.username}`);
}

process.on('message', function (msg) {
    'use strict';

    msg = JSON.parse(msg);

    if (!config) {
        config = msg;
        init(config);

        mongo = new MongoDb(config);

        for (var plugin in config.plugins) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…