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