@ikonai/sdk 0.0.21 → 0.0.22
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/transport/transport.d.ts
CHANGED
|
@@ -36,8 +36,9 @@ export interface TransportCallbacks {
|
|
|
36
36
|
* Called when the connection is closed.
|
|
37
37
|
* @param reason - Optional reason for the close
|
|
38
38
|
* @param wasClean - Whether the close was clean (normal)
|
|
39
|
+
* @param isServerClose - Whether the close code was 1000 or 1001, indicating server-initiated close
|
|
39
40
|
*/
|
|
40
|
-
onClose: (reason?: string, wasClean?: boolean) => void;
|
|
41
|
+
onClose: (reason?: string, wasClean?: boolean, isServerClose?: boolean) => void;
|
|
41
42
|
/**
|
|
42
43
|
* Called when an error occurs.
|
|
43
44
|
*/
|