Skip to content

Conversation

@jkerfs
Copy link
Contributor

@jkerfs jkerfs commented Dec 27, 2016

It looks like support for terminating simulations was designed but not finished in the visualization code. This PR sends the "end" message from the Tornado server to the browser as a websocket message when model.running is false. The client-side javascript was also updated to stop the simulation when the "end" message is received.

The Forest Fire example can be used to demonstrate this change.

@coveralls
Copy link

coveralls commented Dec 27, 2016

Coverage Status

Coverage decreased (-0.2%) to 76.723% when pulling ecbbdd1 on jkerfs:ws-end into 631761b on projectmesa:master.

@dmasad
Copy link
Member

dmasad commented Dec 30, 2016

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants