WebSocket interaction modeled as a pair of streams, for incoming and outgoing messages correspondingly. It provides:
On a client:
var channel = ;var ch = ;chin;chout;
Channel also emits
error events on corresponding socket
error channel tries to re-establish a connection after
some timeout which is handled by node-backoff module (by default exponential
backoff algorithm is used).