expresser-sockets
Web sockets plugin (using Socket.IO) for Expresser.
Last updated a year ago by igoramadas .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install expresser-sockets 
SYNC missed versions from official npm registry.

Expresser Sockets

The Sockets module is a wrapper for Socket.IO, handled automatically by the App module. If you want to disable it, set settings.sockets.enabled to false. For more details about Socket.IO, go to http://socket.io.

Sample code

The sample below shows how to emit a test message to all clients, and listen to a "form:submit" event.

var expresser = require("expresser")

expresser.sockets.emit("myevent", {message: "This is a test"})
expresser.sockets.on("form:submit", function(formData) {
    console.log(formData)
})

For detailed info on specific features, check the annotated source on /docs folder.

Current Tags

  • 3.1.2                                ...           latest (a year ago)

12 Versions

  • 3.1.2                                ...           a year ago
  • 3.1.1                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           5 years ago
  • 1.0.0-alpha.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |