-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow tree-shaking of unused transports
- Loading branch information
1 parent
579b243
commit 5185dc1
Showing
23 changed files
with
538 additions
and
335 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
import { Socket } from "./socket.js"; | ||
|
||
export { Socket }; | ||
export { SocketOptions } from "./socket.js"; | ||
export { | ||
SocketOptions, | ||
SocketWithoutUpgrade, | ||
SocketWithUpgrade, | ||
} from "./socket.js"; | ||
export const protocol = Socket.protocol; | ||
export { Transport, TransportError } from "./transport.js"; | ||
export { transports } from "./transports/index.js"; | ||
export { installTimerFunctions } from "./util.js"; | ||
export { parse } from "./contrib/parseuri.js"; | ||
export { nextTick } from "./transports/websocket-constructor.js"; | ||
export { nextTick } from "./globals.node.js"; | ||
|
||
export { Fetch } from "./transports/polling-fetch.js"; | ||
export { XHR as NodeXHR } from "./transports/polling-xhr.node.js"; | ||
export { XHR } from "./transports/polling-xhr.js"; | ||
export { WS as NodeWebSocket } from "./transports/websocket.node.js"; | ||
export { WS as WebSocket } from "./transports/websocket.js"; | ||
export { WT as WebTransport } from "./transports/webtransport.js"; |
Oops, something went wrong.