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