Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pyscript/pyscript
/ async_wrapper
Function
async_wrapper
core/src/stdlib/pyscript/websocket.py:58–59 ·
view source on GitHub ↗
(event)
Source
from the content-addressed store, hash-verified
56
if
is_awaitable(handler_function):
57
58
async
def
async_wrapper(event):
59
await handler_function(WebSocketEvent(event))
60
61
wrapped_handler = create_proxy(async_wrapper)
62
else
:
Callers
nothing calls this directly
Calls
1
WebSocketEvent
Class · 0.85
Tested by
no test coverage detected