MCPcopy Index your code
hub / github.com/reactive-python/reactpy / use_websocket

Function use_websocket

src/py/reactpy/reactpy/backend/sanic.py:91–93  ·  view source on GitHub ↗

Get the current websocket

()

Source from the content-addressed store, hash-verified

89
90
91def use_websocket() -> WebSocketConnection:
92 """Get the current websocket"""
93 return use_connection().carrier.websocket
94
95
96def use_connection() -> Connection[_SanicCarrier]:

Callers

nothing calls this directly

Calls 1

use_connectionFunction · 0.70

Tested by

no test coverage detected