MCPcopy
hub / github.com/zappa/Zappa / get_handler

Function get_handler

zappa/websocket.py:200–202  ·  view source on GitHub ↗

Get the registered handler for a route key, falling back to $default.

(route_key)

Source from the content-addressed store, hash-verified

198
199
200def get_handler(route_key):
201 """Get the registered handler for a route key, falling back to $default."""
202 return _registry.get(route_key) or _registry.get("$default")
203
204
205def is_websocket_event(event):

Callers 3

handlerMethod · 0.90

Calls

no outgoing calls