projectmesa / mesa-viz-tornado

Apache License 2.0
2 stars 8 forks source link

Visualisation web socket doesn't reconnect #22

Open NeilW opened 4 years ago

NeilW commented 4 years ago

Describe the bug If the web socket gets closed, the simulation stops and doesn't reset without a manual refresh of the page.

Expected behavior The web socket should attempt to reopen if it gets closed

To Reproduce In my case when my Mac goes to sleep overnight and the sockets all time out in my virtual machine!

Additional context May be worth switching the direct call to WebSocket to a ReconnectingWebSocket library like https://github.com/joewalnes/reconnecting-websocket

tpike3 commented 4 years ago

@NeilW Thanks we could absolutely use some front end help if you would be interested in making these changes and submitting a pull request.