skateboard
Quickly create a stream from the browser to the server with engine.io
Use
npm install skateboard
// server.jsvar skateboard = ;;
skateboard([wshref
[, fn
]])
wshref
- optional cross domain skateboard to connect tofn
- optional connection handler. first argument is a duplexstream
<!-- public/index.html -->
client events
connection
- emitted on the first connectiondisconnection
- emitted whenever the connection disconnectsreconnection
- emitted whenever a new connection is established
License
MIT