Named after Alan Turing's (with a few other contributors) invention, the Bombe, which during World War II assisted in deciphering German communications. See https://wikipedia.org/wiki/Bombe.
npm install thebombemachine --save
The object must have been set up first.
Handle incoming messages
var handlerID = Bombe.onReceive(callback_function);
Handle outgoing messages
var handlerID = Bombe.onSend(callback_function);
Delete event handler (either incoming or outgoing)
Send a message to the server
Ping the server
Control auto-ping (the server will close the connection if it's not pinged regularly)
Bombe.startAutoPing(interval_ms [optional], timeout_ms [optional]); Bombe.stopAutoPing();