mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 01:12:55 +00:00 
			
		
		
		
	Keep websocket connection alive
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user