mongodb-socketio-adapter

MongoDB Socket.io Adapter on MongoDB Native NodeJS Driver

3 years after

mongodb-socketio-adapter

MongoDB Socket.io Adapter on MongoDB Native NodeJS Driver

require("mongodb-socketio-adapter")(collection, options, callback)

MongoDB Socket.io Adapter Factory:

@param {object} collection - MongoDB collection
@param {object} [options]
@param {number} [options.errorTimeout=1000]
@param {object} [options.oplog] - MongoDB oplog.rs collection (if use replica set)
@param {object} [options.ns] - MongoDB namespace to tail (if use replica set)
@param {callback} callback

Callback:

@callback {function} callback
@param {object} err - Instance of Error
@param {function} MongoDBAdapter - MongoDB Socket.io Adapter Constructor
@param {tail} emitter - Instance of EventEmitter

Tail:

@typedef {object} tail - Instance of EventEmitter
@fires error - On error
@fires next - On cursor nextObject

Examples

Related Repositories

awesome-swift

awesome-swift

A collaborative list of awesome swift resources. Feel free to contribute! ...

chat.io

chat.io

A Real Time Chat Application built using Node.js, Express, Mongoose, Socket.io, ...

awesome-swift

awesome-swift

A collaborative list of awesome swift resources. Feel free to contribute! ...

AmityApp

AmityApp

Making data management more friendly. ...

awesome-python

awesome-python

A curated list of awesome Python frameworks, libraries and software ...