Kitware / visualizer

The ParaViewWeb Visualizer application which can be used standalone or as a component within another web context.
https://kitware.github.io/visualizer/
BSD 3-Clause "New" or "Revised" License
115 stars 28 forks source link

websocket close #58

Closed tomhaitao closed 6 years ago

tomhaitao commented 6 years ago

how to actively disconnects websocket on the web

jourdain commented 6 years ago

Just need to call the exit() method.

https://github.com/Kitware/visualizer/blob/master/src/app.js#L61

tomhaitao commented 6 years ago

call the exit() method,server disconnect but web client not disconnect,web client will continue to send messages

jourdain commented 6 years ago

https://github.com/Kitware/wslink/blob/master/js/src/WebsocketConnection/session.js#L86