limb
tcp heartbeat connection tool
Model
One server, many clients
clients tell server about themselves
events for changes in connectivity
JSON configuration is transferred once, heartbeats continue passing smaller data
server
var limb = limb limb limb
client
var limb = // whatever you put as the info property // will be viewable on the server with the .getAll() methodlimbinfo = arbitrary: "values" limb
Methods
limb#getAll()
returns array of connected clients
limb#listen(port)
start net server running on port
limb#connect(info, port, host)
Events
server: 'client'
emitted when a client connects to the server and a duplex handshake has been established
limb
server 'drop'
emitted when a client connection is closed
limb