type Incoming
import bend-kit-websocket@0.4.0.0/websocket.bend as Websocketimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
767# What recv returns. Ping is answered with a pong inside recv and not returned.
768type Incoming is Type:
769 TextMessage{data: Bytes.Bytes}
770 Binary{data: Bytes.Bytes}
771 Pong{data: Bytes.Bytes}
772 Closed{code: U32, reason: Bytes.Bytes}