3.1.2 • Published 5 years ago

expresser-sockets v3.1.2

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
5 years ago

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.

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.1

7 years ago

3.0.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

1.0.0-alpha.1

9 years ago