Skip to content

Commit b4b3ed5

Browse files
refactor: merge the polling.ts and polling-xhr.ts files
In the past, there were two implementations of the HTTP long-polling feature, one with XMLHttpRequest and one based on JSONP for ancient browsers (IE7/IE8). The JSONP implementation has been removed in [1]. [1]: b2c7381
1 parent b9252e2 commit b4b3ed5

File tree

3 files changed

+305
-340
lines changed

3 files changed

+305
-340
lines changed

lib/transports/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { XHR } from "./polling-xhr.js";
1+
import { Polling } from "./polling.js";
22
import { WS } from "./websocket.js";
33

44
export const transports = {
55
websocket: WS,
6-
polling: XHR
6+
polling: Polling
77
};

lib/transports/polling-xhr.ts

Lines changed: 0 additions & 334 deletions
This file was deleted.

0 commit comments

Comments
 (0)