MCPcopy Index your code
hub / github.com/nonebot/nonebot2 / WebSocketServerSetup

Class WebSocketServerSetup

nonebot/internal/driver/model.py:364–369  ·  view source on GitHub ↗

WebSocket 服务器路由配置。

Source from the content-addressed store, hash-verified

362
363@dataclass
364class WebSocketServerSetup:
365 """WebSocket 服务器路由配置。"""
366
367 path: URL # path should not be absolute, check it by URL.is_absolute() == False
368 name: str
369 handle_func: Callable[[WebSocket], Awaitable[Any]]

Callers 3

test_websocket_serverFunction · 0.85
test_cross_contextFunction · 0.85
test_adapter_serverFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_websocket_serverFunction · 0.68
test_cross_contextFunction · 0.68
test_adapter_serverFunction · 0.68