Browse Source
Documents the WebSocket re-exports from Starlette, clarifying that this module provides a consistent FastAPI import path for WebSocket classes.pull/15657/head
1 changed files with 8 additions and 0 deletions
@ -1,3 +1,11 @@ |
|||||
|
""" |
||||
|
WebSocket support for FastAPI. |
||||
|
|
||||
|
Re-exports Starlette's WebSocket classes for use in FastAPI applications, |
||||
|
providing a consistent import path for WebSocket, WebSocketDisconnect, and |
||||
|
WebSocketState. |
||||
|
""" |
||||
|
|
||||
from starlette.websockets import WebSocket as WebSocket # noqa |
from starlette.websockets import WebSocket as WebSocket # noqa |
||||
from starlette.websockets import WebSocketDisconnect as WebSocketDisconnect # noqa |
from starlette.websockets import WebSocketDisconnect as WebSocketDisconnect # noqa |
||||
from starlette.websockets import WebSocketState as WebSocketState # noqa |
from starlette.websockets import WebSocketState as WebSocketState # noqa |
||||
|
|||||
Loading…
Reference in new issue