Crate ic_websocket_cdk

source ·

Re-exports§

Modules§

Macros§

Functions§

  • Closes the connection with the client.
  • Initialize the CDK.
  • Sends a message to the client. The message must already be serialized using Candid. Use candid::encode_one to serialize the message.
  • Resets the internal state of the IC WebSocket CDK.
  • Handles the WS connection close event received from the WS Gateway.
  • Returns messages to the WS Gateway in response of a polling iteration.
  • Handles the WS messages received either directly from the client or relayed by the WS Gateway.
  • Handles the WS connection open event sent by the client and relayed by the Gateway.
  • ws_sendDeprecated
    Deprecated: use send instead.