Primus-Tcp
Primus Raw TCP Transformer. Connect Node.js to Vanilla TCP Servers via Primus.
Getting Started
Install the transformer with this command:
npm install primus-tcp --save
Add the transformer to the Primus constructor and subscribe to the events.
var primus = ;var transformer = ;var parser = ; var PrimusSocket = primus; var url = "..."; //Destination Servervar options = ; //Standard Primus Options var connection = url options; //Standard Primus Eventsconnection;connection;connection;connection;connection;
Now we are able to connect to a vanilla tcp server (Java?) and still keep all the neat abstractions (reconnect, heartbeat, etc) that Primus provides.