# sockjs-client-node **Repository Path**: mirrors_sockjs/sockjs-client-node ## Basic Information - **Project Name**: sockjs-client-node - **Description**: SockJS client for Node - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # **DEPRECATED** The [sockjs-client](https://github.com/sockjs/sockjs-client) project now supports running in node, and supports more transports than this project does. I strongly encourage you to use that instead. # SockJS Client Node Node client for [SockJS](https://github.com/sockjs). Currently, only the XHR Streaming transport is supported. ## Usage var sjsc = require('sockjs-client'); 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!");