Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 402 Bytes

File metadata and controls

17 lines (11 loc) · 402 Bytes

#ReconnectingWebSocket

Based on https://github.com/daviddoran/typescript-reconnecting-websocket Reconnecting Websocket for Angular2 Usage: a WebSocket connection that will automatically reconnect if the connection is dropped.

It is API compatible, so when you have:

ws = new WebSocket('ws://....');

you can replace with:

ws = new ReconnectingWebSocket('ws://....');