LP#1268619: websocket JS libs: reconnect and auto-connect