We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46ef851 commit c1795efCopy full SHA for c1795ef
lib/index.ts
@@ -3,7 +3,7 @@ import { Socket } from "./socket.js";
3
export { Socket };
4
export { SocketOptions } from "./socket.js";
5
export const protocol = Socket.protocol;
6
-export { Transport } from "./transport.js";
+export { Transport, TransportError } from "./transport.js";
7
export { transports } from "./transports/index.js";
8
export { installTimerFunctions } from "./util.js";
9
export { parse } from "./contrib/parseuri.js";
lib/transport.ts
@@ -8,7 +8,7 @@ import { encode } from "./contrib/parseqs.js";
const debug = debugModule("engine.io-client:transport"); // debug()
10
11
-class TransportError extends Error {
+export class TransportError extends Error {
12
public readonly type = "TransportError";
13
14
constructor(
0 commit comments