MCPcopy
hub / github.com/miguelgrinberg/Flask-SocketIO / _handler

Method _handler

src/flask_socketio/__init__.py:295–307  ·  view source on GitHub ↗
(sid, *args)

Source from the content-addressed store, hash-verified

293 def decorator(handler):
294 @wraps(handler)
295 def _handler(sid, *args):
296 real_ns = namespace
297 if namespace == '*':
298 real_ns = sid
299 sid = args[0]
300 args = args[1:]
301 real_msg = message
302 if message == '*':
303 real_msg = sid
304 sid = args[0]
305 args = [real_msg] + list(args[1:])
306 return self._handle_event(handler, message, real_ns, sid,
307 *args)
308
309 if self.server:
310 self.server.on(message, _handler, namespace=namespace)

Callers

nothing calls this directly

Calls 1

_handle_eventMethod · 0.95

Tested by

no test coverage detected