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

Method _handle_eio_disconnect

src/socketio/server.py:677–682  ·  view source on GitHub ↗

Handle Engine.IO disconnect event.

(self, eio_sid, reason)

Source from the content-addressed store, hash-verified

675 raise ValueError('Unknown packet type.')
676
677 def _handle_eio_disconnect(self, eio_sid, reason):
678 """Handle Engine.IO disconnect event."""
679 for n in list(self.manager.get_namespaces()).copy():
680 self._handle_disconnect(eio_sid, n, reason)
681 if eio_sid in self.environ:
682 del self.environ[eio_sid]
683
684 def _engineio_server_class(self):
685 return engineio.Server

Calls 2

_handle_disconnectMethod · 0.95
get_namespacesMethod · 0.80