MCPcopy Index your code
hub / github.com/rawpython/remi / handle

Method handle

remi/server.py:139–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 self.handshake_done = False
138
139 def handle(self):
140 global clients
141 self._log.debug('handle')
142 # on some systems like ROS, the default socket timeout
143 # is less than expected, we force it to infinite (None) as default socket value
144 self.request.settimeout(None)
145 if self.handshake():
146 while True:
147 if not self.read_next_message():
148 clients[self.session].websockets.discard(self)
149 self.handshake_done = False
150 self._log.debug('ws ending websocket service')
151 break
152
153 @staticmethod
154 def bytetonum(b):

Callers

nothing calls this directly

Calls 2

handshakeMethod · 0.95
read_next_messageMethod · 0.95

Tested by

no test coverage detected