Reads a message or close; answers pings automatically and ignores pongs. Example: event := ws_read(*connection); if event.kind == .MESSAGE consume(event.data).
Signature
ws_read :: (connection: *Ws_Connection) -> Ws_Event
Reads a message or close; answers pings automatically and ignores pongs. Example: event := ws_read(*connection); if event.kind == .MESSAGE consume(event.data).
ws_read :: (connection: *Ws_Connection) -> Ws_Event