MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / _handle_connect

Method _handle_connect

src/socketio/async_client.py:393–399  ·  view source on GitHub ↗
(self, namespace, data)

Source from the content-addressed store, hash-verified

391 await self.eio.send(encoded_packet)
392
393 async def _handle_connect(self, namespace, data):
394 namespace = namespace or '/'
395 if namespace not in self.namespaces:
396 self.logger.info(f'Namespace {namespace} is connected')
397 self.namespaces[namespace] = (data or {}).get('sid', self.sid)
398 await self._trigger_event('connect', namespace=namespace)
399 self._connect_event.set()
400
401 async def _handle_disconnect(self, namespace):
402 if not self.connected:

Calls 2

_trigger_eventMethod · 0.95
getMethod · 0.45