A friendly WebSocket client for Node.js
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

sockman

A friendly WebSocket client for Node.js.

Sockman keeps your WebSocket connected, forever.

Install

npm install --save sockman

Usage

var socket = require('sockman').connect( url );
socket.on('connect', function (connection) {
   
   connection.send(JSON.stringify({
       some: 'data'
   }));
   
   connection.on('message', function (msg) {
      console.log(msg);
   });

});