Skip to content
sean_codes edited this page Dec 30, 2016 · 6 revisions

CS-Sockets

The fastest Pure NodeJS Websockets For Sending Text/JSON (strings)

Still a work in progress! Comments = ~functions just not moved yet!

Purpose

Text only based networking for simple JSON networking

Performance

Local Machine ~3,000 per second 256 byte string Up/Down

100k 127byte strings Up/Down in 1 minute. ~5-20 seconds faster than WS

Remote ~500+ 256 byte string Up/Down (Coffee Shop Wireless Connection)

#Usage An echo server

const csServer = require('./csServer');
csServer.on('open', function(client){
    client.on('message', function(message){
        this.sendMessage(this, message);
    });
});
Clone this wiki locally