Nutritious Pumpkin Meal

    sockjs-client-ws

    0.1.0 • Public • Published

    SockJS Client Node

    Node client for SockJS. Currently, only the WebSocket transport is supported.

    Usage

    var sjsc = require('sockjs-client-ws');
    var client = sjsc.create("http://localhost/sjsServer");
    client.on('connection', function () { // connection is established });
    client.on('data', function (msg) { // received some data });
    client.on('error', function (e) { // something went wrong });
    client.write("Have some text you mighty SockJS server!");
    

    Keywords

    none

    Install

    npm i sockjs-client-ws

    DownloadsWeekly Downloads

    8

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • steerapi