websocket
Packet
dataclass
Bases: Serializable
Packet class represents a message that is sent through the websocket.
Source code in backend/shared/websocket.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
data: Generic[T] = None
class-attribute
instance-attribute
The data field is the actual data that is sent through the websocket.
type: str
instance-attribute
The type of the packet.