Skip to content

Commit c1795ef

Browse files
authored
refactor: export TransportError (#709)
1 parent 46ef851 commit c1795ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Socket } from "./socket.js";
33
export { Socket };
44
export { SocketOptions } from "./socket.js";
55
export const protocol = Socket.protocol;
6-
export { Transport } from "./transport.js";
6+
export { Transport, TransportError } from "./transport.js";
77
export { transports } from "./transports/index.js";
88
export { installTimerFunctions } from "./util.js";
99
export { parse } from "./contrib/parseuri.js";

lib/transport.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { encode } from "./contrib/parseqs.js";
88

99
const debug = debugModule("engine.io-client:transport"); // debug()
1010

11-
class TransportError extends Error {
11+
export class TransportError extends Error {
1212
public readonly type = "TransportError";
1313

1414
constructor(

0 commit comments

Comments
 (0)