Skip to content

A small decorator for the JavaScript WebSocket API that automatically reconnects

License

Notifications You must be signed in to change notification settings

kudos/angular-reconnecting-websocket

 
 

Repository files navigation

ReconnectingWebSocket

A small JavaScript library that decorates the WebSocket API to provide 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://....');

Forked Features

Exponential backoff with sensible defaults.

About

A small decorator for the JavaScript WebSocket API that automatically reconnects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%