Skip to content

Commit f8640d9

Browse files
refactor: export DisconnectReason type
Related: #4556
1 parent 93d446a commit f8640d9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/index.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
import * as parser from "socket.io-parser";
2727
import type { Encoder } from "socket.io-parser";
2828
import debugModule from "debug";
29-
import { Socket } from "./socket";
29+
import { Socket, DisconnectReason } from "./socket";
3030
import type { BroadcastOperator, RemoteSocket } from "./broadcast-operator";
3131
import {
3232
EventsMap,
@@ -1096,5 +1096,12 @@ module.exports.Server = Server;
10961096
module.exports.Namespace = Namespace;
10971097
module.exports.Socket = Socket;
10981098

1099-
export { Socket, ServerOptions, Namespace, BroadcastOperator, RemoteSocket };
1099+
export {
1100+
Socket,
1101+
DisconnectReason,
1102+
ServerOptions,
1103+
Namespace,
1104+
BroadcastOperator,
1105+
RemoteSocket,
1106+
};
11001107
export { Event } from "./socket";

0 commit comments

Comments
 (0)