UNPKG

ps2wss

Version:

A super simple extension of [WebSocket](https://github.com/einaros/ws) built to abstract away some of the complexity in working with [SOE's Planetside 2 Web Socket Service](http://census.soe.com/#ps2-websocket1).

10 lines (8 loc) 226 B
module.exports = require('./lib/client'); module.exports.connect = function (sid, onOpen) { var client = new module.exports(sid); if (typeof onOpen === 'function') { client.on('open', onOpen); } return client; };