9 lines
250 B
Python
9 lines
250 B
Python
|
from typing import Any, Dict, TypeVar
|
||
|
|
||
|
from fastapi import WebSocket as FastAPIWebSocket
|
||
|
from websockets import WebSocketClientProtocol as WebSocket
|
||
|
|
||
|
|
||
|
WebSocketType = TypeVar("WebSocketType", FastAPIWebSocket, WebSocket)
|
||
|
MessageType = Dict[str, Any]
|