Struct dtn7_plus::client::DtnWsConnection [−][src]
Implementations
Send a text message via websocket
accepted commands:
/data
/bundle
/subscribe <service>
Send a binary message via websocket
Server expects either
- a valid bundle (in bundle mode)
- a WsSendData struct as a cbor buffer (in data mode)
Read the next message
Could be text, binary, ping, etc etc
Expect a text message next, returning an error on any other message type
Expect a binary message next, returning an error on any other message type