organic-socketio-handlers
Autoload socketio handlers (similar to [organic-express-routes](https://www.npmjs.com/package/organic-express-routes)) based on [organic-socketio-server](https://www.npmjs.com/package/organic-socketio-server)
Last updated 2 years ago by outbounder .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install organic-socketio-handlers 
SYNC missed versions from official npm registry.

organic-socketio-handlers

Autoload socketio handlers (similar to organic-express-routes) based on organic-socketio-server

dna

{
  "log": Boolean,
  "basedir": String,
  "patterns": [String],
  "reactOn": {
    "type": String,
    "propertyName": String
  },
  "emitReady": String
}

example with SocketIOServer

const Plasma = require('organic-plasma')
const SocketIOServer = require('organic-socketio-server')
const SocketIOHandlers = require('organic-socketio-handlers')

let plasma = new Plasma()
let server = new SocketIOServer(plasma, {
  port: 8787,
  emit: {
    connection: 'SocketIOConnection'
  }
})
let handlers = new SocketIOHandlers(plasma, {
  reactOn: 'SocketIOConnection'
})

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |