Module ic_websocket_cdk::types
source · Structs§
- Note: You should only use this struct in tests.
- Note: You should only use this struct in tests.
- Note: You should only use this struct in tests.
- List of messages returned to the WS Gateway after polling.
- Element of the list of messages returned to the WS Gateway after polling.
- The arguments for ws_close.
- The arguments for ws_get_messages.
- The arguments for ws_message.
- The arguments for ws_open.
- Note: You should only use this struct in tests.
- Arguments passed to the
on_close
handler. - Arguments passed to the
on_message
handler. Themessage
argument is the message received from the client, serialized in Candid. To deserialize the message, use candid::decode_one. - Arguments passed to the
on_open
handler. - Messages exchanged through the WebSocket.
- Handlers initialized by the canister and triggered by the CDK.
- Parameters for the IC WebSocket CDK initialization. For default parameters and simpler initialization, use
WsInitParams::new
.
Enums§
- Note: You should only use this struct in tests.
- A service message sent by the CDK to the client or vice versa.
Type Aliases§
- The result of close.
- The result of send.
- The result of ws_close.
- The result of ws_get_messages.
- The result of ws_message.
- The result of ws_open.
- CanisterWsSendResultDeprecated