melloware / react-logviewer

React Lazy LogViewer
https://melloware.github.io/react-logviewer/
Mozilla Public License 2.0
45 stars 10 forks source link

Added automatic reconnect to WebSocket #33

Closed ClemensElflein closed 2 months ago

ClemensElflein commented 2 months ago

Added reconnect and reconnectWait properties to the WebsocketOptions.

When reconnect is true and the Websocket disconnects, it will attempt a reconnect after reconnectWait seconds.

The props are optional. If not set, the behavior is unchanged.