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

Method initialize

src/socketio/base_manager.py:24–28  ·  view source on GitHub ↗

Invoked before the first request is received. Subclasses can add their initialization code here.

(self)

Source from the content-addressed store, hash-verified

22 self.json = self.server.packet_class.json # use the global JSON module
23
24 def initialize(self):
25 """Invoked before the first request is received. Subclasses can add
26 their initialization code here.
27 """
28 pass
29
30 def get_namespaces(self):
31 """Return an iterable with the active namespace names."""

Callers 6

_handle_eio_connectMethod · 0.45
_handle_eio_connectMethod · 0.45
setup_methodMethod · 0.45
setup_methodMethod · 0.45
setup_methodMethod · 0.45
setup_methodMethod · 0.45

Calls

no outgoing calls

Tested by 4

setup_methodMethod · 0.36
setup_methodMethod · 0.36
setup_methodMethod · 0.36
setup_methodMethod · 0.36