Keep websocket connection alive

This commit is contained in:
R. Richard 2020-05-18 18:02:07 +02:00
parent dc76f1b732
commit 70f4d666e3
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class TerminadoMiniServer:
url,
TerminadoMiniServer.ResetterTermSocket,
{'term_manager': self._term_manager}
)])
)], websocket_ping_interval=30)
@property
def term_manager(self):

View File

@ -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)