mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 11:11:33 +00:00
Keep websocket connection alive
This commit is contained in:
parent
dc76f1b732
commit
70f4d666e3
@ -17,7 +17,7 @@ class TerminadoMiniServer:
|
||||
url,
|
||||
TerminadoMiniServer.ResetterTermSocket,
|
||||
{'term_manager': self._term_manager}
|
||||
)])
|
||||
)], websocket_ping_interval=30)
|
||||
|
||||
@property
|
||||
def term_manager(self):
|
||||
|
@ -28,7 +28,7 @@ class TFWServer:
|
||||
r'/ws', ZMQWebSocketRouter, {
|
||||
'listener': self._listener,
|
||||
}
|
||||
)])
|
||||
)], websocket_ping_interval=30)
|
||||
|
||||
def listen(self):
|
||||
self.application.listen(TFWENV.WEB_PORT)
|
||||
|
Loading…
Reference in New Issue
Block a user