Structs§
- Canister
AckMessage Content - Note: You should only use this struct in tests.
- Canister
Close Message Content - Note: You should only use this struct in tests.
- Canister
Open Message Content - Note: You should only use this struct in tests.
- Canister
Output Certified Messages - List of messages returned to the WS Gateway after polling.
- Canister
Output Message - Element of the list of messages returned to the WS Gateway after polling.
- Canister
WsClose Arguments - The arguments for ws_close.
- Canister
WsGet Messages Arguments - The arguments for ws_get_messages.
- Canister
WsMessage Arguments - The arguments for ws_message.
- Canister
WsOpen Arguments - The arguments for ws_open.
- Client
Keep Alive Message Content - Note: You should only use this struct in tests.
- Client
Key - OnClose
Callback Args - Arguments passed to the
on_closehandler. - OnMessage
Callback Args - Arguments passed to the
on_messagehandler. Themessageargument is the message received from the client, serialized in Candid. To deserialize the message, use candid::decode_one. - OnOpen
Callback Args - Arguments passed to the
on_openhandler. - Websocket
Message - Messages exchanged through the WebSocket.
- WsHandlers
- Handlers initialized by the canister and triggered by the CDK.
- WsInit
Params - Parameters for the IC WebSocket CDK initialization. For default parameters and simpler initialization, use
WsInitParams::new.
Enums§
- Close
Message Reason - Note: You should only use this struct in tests.
- Websocket
Service Message Content - A service message sent by the CDK to the client or vice versa.
Type Aliases§
- Canister
Close Result - The result of close.
- Canister
Send Result - The result of send.
- Canister
WsClose Result - The result of ws_close.
- Canister
WsGet Messages Result - The result of ws_get_messages.
- Canister
WsMessage Result - The result of ws_message.
- Canister
WsOpen Result - The result of ws_open.
- Canister
WsSend Result Deprecated - Client
Principal