net-socket
net.Socket that automatically reconnects if a server goes down. Maintains 100% compatibility with net.Socket.
Installation
$ npm install net-socket --save
Usage
For detailed usage, see Node.js documentation on net.Socket - https://nodejs.org/api/net.html#net_class_net_socket.
Quick example:
var net = ; var socket = net; socket;socket;
WARNING: To prevent socket from reconnecting, use .destroy()
method to completely close it.
Tests
$ npm test
License
WTFPL – Do What the Fuck You Want to Public License