Message

class Message
type: str

either “binary” or “text”

data: str
static new(type, data)

A websocket message for sending or receiving

Parameters
  • type (str) – [“binary”|”text”] The type of message

  • data (str) – The message body