We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3be6481 commit a66ed68Copy full SHA for a66ed68
1 file changed
docs/engine.io-protocol/v4-test-suite/test-suite.js
@@ -332,6 +332,25 @@ describe("Engine.IO protocol", () => {
332
333
expect(pollResponse.status).to.eql(400);
334
});
335
+
336
+ it("closes the session upon cancelled polling request", async () => {
337
+ const sid = await initLongPollingSession();
338
+ const controller = new AbortController();
339
340
+ fetch(`${URL}/engine.io/?EIO=4&transport=polling&sid=${sid}`, {
341
+ signal: controller.signal,
342
+ }).catch(() => {});
343
344
+ await sleep(5);
345
346
+ controller.abort();
347
348
+ const pollResponse = await fetch(
349
+ `${URL}/engine.io/?EIO=4&transport=polling&sid=${sid}`,
350
+ );
351
352
+ expect(pollResponse.status).to.eql(400);
353
+ });
354
355
356
describe("WebSocket", () => {
0 commit comments