@ikonai/sdk 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/channel/channel.d.ts
CHANGED
|
@@ -29,8 +29,11 @@ export interface ChannelConfig {
|
|
|
29
29
|
onStateChange?: (state: ChannelState) => void;
|
|
30
30
|
/**
|
|
31
31
|
* Callback when channel is closed.
|
|
32
|
+
* @param reason - Optional reason for the close
|
|
33
|
+
* @param wasClean - Whether the close was clean (normal)
|
|
34
|
+
* @param isServerClose - Whether the close code was 1000 or 1001, indicating server-initiated close
|
|
32
35
|
*/
|
|
33
|
-
onClose?: (reason?: string, wasClean?: boolean) => void;
|
|
36
|
+
onClose?: (reason?: string, wasClean?: boolean, isServerClose?: boolean) => void;
|
|
34
37
|
/**
|
|
35
38
|
* Callback when an error occurs.
|
|
36
39
|
*/
|