Function ic_websocket_cdk::init

source ·
pub fn init(params: WsInitParams)
Expand description

Initialize the CDK by setting the callback handlers and the principal of the WS Gateway that will be polling the canister.

Note: Resets the timers under the hood.

Traps

If the parameters are invalid. See WsInitParams::check_validity for more details.