WsEvent
struct WsEventA complete message, or the end of the session.
Implements Copyable, Movable
- Fields
kind: Int:WS_EVENT_MESSAGEorWS_EVENT_CLOSED.is_text: Bool: For a message: TEXT (validated UTF-8) rather than BINARY.payload: List[UInt8]: For a message: the reassembled payload.code: Int: For a close: the code the session ended with (1005 when the peer sent none).
__init__
def __init__(out self, kind: Int, is_text: Bool, var payload: List[UInt8], code: Int)