organic-socketio-server

2.0.1 • Public • Published

organic-socketio-server

Organelle wrapping socket.io v2.1.0

dna

{
  "attachToChemical": {
    "type": "ExpressServer",
    "propertyName": "server"
  },
  "emit": {
    "ready": "SocketIO",
    "connection": "SocketIOConnection"
  },
  "initializerPath": undefined,
  "log": false,
  "options": undefined
}

initializerPath

Path to a module relative to process.cwd() having the following implementation

module.exports = function(options, done) {
  let plasma = options.plasma
  let dna = options.dna
  let io = options.io
  let httpServer = options.httpServer
  done() // must be called in order to emit.ready
}

options

Object having socketio v2.1.0 options structure.

Reacts on chemicals

attachToChemical.type

{
  `attachToChemical.propertyName`: HttpServer
}

Emits chemicals

emit.ready

{
  io: socketioServer
}

emit.connection

{
  socket: socketioSocket
}

Readme

Keywords

none

Package Sidebar

Install

npm i organic-socketio-server

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

6.61 kB

Total Files

7

Last publish

Collaborators

  • outbounder