verani 0.5.4 → 0.5.5
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/dist/client.d.cts +13 -7
- package/dist/client.d.mts +13 -7
- package/package.json +2 -1
package/dist/client.d.cts
CHANGED
|
@@ -88,6 +88,18 @@ interface VeraniClientOptions {
|
|
|
88
88
|
pongTimeout?: number;
|
|
89
89
|
}
|
|
90
90
|
//#endregion
|
|
91
|
+
//#region src/client/types.d.ts
|
|
92
|
+
/**
|
|
93
|
+
* Detailed connection state information
|
|
94
|
+
*/
|
|
95
|
+
interface ConnectionStateInfo {
|
|
96
|
+
state: ConnectionState;
|
|
97
|
+
isConnected: boolean;
|
|
98
|
+
isConnecting: boolean;
|
|
99
|
+
reconnectAttempts: number;
|
|
100
|
+
connectionId: number;
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
91
103
|
//#region src/client/client.d.ts
|
|
92
104
|
/**
|
|
93
105
|
* Verani WebSocket client with automatic reconnection and lifecycle management
|
|
@@ -131,13 +143,7 @@ declare class VeraniClient {
|
|
|
131
143
|
/**
|
|
132
144
|
* Gets detailed connection information
|
|
133
145
|
*/
|
|
134
|
-
getConnectionState():
|
|
135
|
-
state: ConnectionState;
|
|
136
|
-
isConnected: boolean;
|
|
137
|
-
isConnecting: boolean;
|
|
138
|
-
reconnectAttempts: number;
|
|
139
|
-
connectionId: number;
|
|
140
|
-
};
|
|
146
|
+
getConnectionState(): ConnectionStateInfo;
|
|
141
147
|
/**
|
|
142
148
|
* Waits for the connection to be established
|
|
143
149
|
* @returns Promise that resolves when connected
|
package/dist/client.d.mts
CHANGED
|
@@ -88,6 +88,18 @@ interface VeraniClientOptions {
|
|
|
88
88
|
pongTimeout?: number;
|
|
89
89
|
}
|
|
90
90
|
//#endregion
|
|
91
|
+
//#region src/client/types.d.ts
|
|
92
|
+
/**
|
|
93
|
+
* Detailed connection state information
|
|
94
|
+
*/
|
|
95
|
+
interface ConnectionStateInfo {
|
|
96
|
+
state: ConnectionState;
|
|
97
|
+
isConnected: boolean;
|
|
98
|
+
isConnecting: boolean;
|
|
99
|
+
reconnectAttempts: number;
|
|
100
|
+
connectionId: number;
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
91
103
|
//#region src/client/client.d.ts
|
|
92
104
|
/**
|
|
93
105
|
* Verani WebSocket client with automatic reconnection and lifecycle management
|
|
@@ -131,13 +143,7 @@ declare class VeraniClient {
|
|
|
131
143
|
/**
|
|
132
144
|
* Gets detailed connection information
|
|
133
145
|
*/
|
|
134
|
-
getConnectionState():
|
|
135
|
-
state: ConnectionState;
|
|
136
|
-
isConnected: boolean;
|
|
137
|
-
isConnecting: boolean;
|
|
138
|
-
reconnectAttempts: number;
|
|
139
|
-
connectionId: number;
|
|
140
|
-
};
|
|
146
|
+
getConnectionState(): ConnectionStateInfo;
|
|
141
147
|
/**
|
|
142
148
|
* Waits for the connection to be established
|
|
143
149
|
* @returns Promise that resolves when connected
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verani",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "A simple, focused realtime SDK for Cloudflare Actors with Socket.io-like semantics",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"keywords": [
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@cloudflare/vitest-pool-workers": "^0.8.19",
|
|
55
|
+
"@nyron/cli": "^0.7.8",
|
|
55
56
|
"esbuild-fix-imports-plugin": "^1.0.23",
|
|
56
57
|
"tsdown": "^0.16.7",
|
|
57
58
|
"typescript": "^5",
|