pr-express-ws
v0.2.2
Published
ExpressJS Routing for Websockets
Downloads
9
Maintainers
Readme
pr-express-ws
Simple ExpressJS based routing for Websockets
Philosophy
Easy to use express-like routing when using websockets.
Installation
$ npm install pr-express-ws
$ npm test
APIs
The module exports two functions:
- checkWebsocketUpgrade
- handleWebsocketUpgrade
var expressWs = require('pr-express-ws'),
checkWebsocketUpgrade = expressWs.checkWebsocketUpgrade,
handleWebsocketUpgrade = expressWs.handleWebsocketUpgrade;
Usage
Refer to test server.js implementation for usage details.
Test
$ npm install # inside pr-express-ws
$ npm test