websocket-wrapper

0.1.2 • Public • Published

websocket

thin layer on top of websockets

Example

var websocket = require('websocket');
 
var ws = websocket();
 
ws.on('message', function(msg){
  console.log(msg.data);
});
 
ws.on('open', function(){
  ws.send('hello there');
});

License

MIT

/websocket-wrapper/

    Package Sidebar

    Install

    npm i websocket-wrapper

    Weekly Downloads

    3

    Version

    0.1.2

    License

    BSD

    Last publish

    Collaborators

    • kof