@jskit-ai/realtime 0.2.15 → 0.2.17
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/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/realtime",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"test": "
|
|
6
|
+
"test": "jskit test"
|
|
7
7
|
},
|
|
8
8
|
"exports": {
|
|
9
9
|
"./server/RealtimeProvider": "./src/server/RealtimeProvider.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"socket.io-client": "^4.8.3"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@jskit-ai/kernel": "0.2.
|
|
26
|
+
"@jskit-ai/kernel": "0.2.11",
|
|
27
27
|
"vue": "^3.5.13"
|
|
28
28
|
},
|
|
29
29
|
"description": "Thin, generic realtime runtime wrappers for socket.io server and client.",
|
|
@@ -211,7 +211,9 @@ test("a real server-forced disconnect reconnects through a fresh authenticated h
|
|
|
211
211
|
});
|
|
212
212
|
http.listen(0, "127.0.0.1");
|
|
213
213
|
await once(http, "listening");
|
|
214
|
-
|
|
214
|
+
// WebSocket only, like the other real-socket tests: a polling transport the server closes waits 30 s for a poll
|
|
215
|
+
// that never comes, which keeps this file running long after its tests.
|
|
216
|
+
const client = createSocketIoClient({ url: `http://127.0.0.1:${http.address().port}`, options: { transports: ["websocket"] } });
|
|
215
217
|
const detach = attachSocketConnectionRecovery(client, { prepareReconnect: prepareNothing });
|
|
216
218
|
t.after(async () => {
|
|
217
219
|
detach();
|
|
@@ -236,7 +238,7 @@ test("reconnect now opens a fresh transport while Socket.IO waits out its backof
|
|
|
236
238
|
await once(http, "listening");
|
|
237
239
|
const client = createSocketIoClient({
|
|
238
240
|
url: `http://127.0.0.1:${http.address().port}`,
|
|
239
|
-
options: { randomizationFactor: 0, reconnectionDelay: 60_000, reconnectionDelayMax: 60_000 }
|
|
241
|
+
options: { transports: ["websocket"], randomizationFactor: 0, reconnectionDelay: 60_000, reconnectionDelayMax: 60_000 }
|
|
240
242
|
});
|
|
241
243
|
t.after(async () => {
|
|
242
244
|
client.disconnect();
|