Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1136,4 +1136,4 @@ export {
BroadcastOperator,
RemoteSocket,
};
export { Event } from "./socket";
export { Event, SocketRequest } from "./socket";
4 changes: 3 additions & 1 deletion lib/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export const RESERVED_EVENTS: ReadonlySet<string | Symbol> = new Set<
"removeListener",
]);

export interface SocketRequest extends IncomingMessage {}

/**
* The handshake details
*/
Expand Down Expand Up @@ -990,7 +992,7 @@ export class Socket<
/**
* A reference to the request that originated the underlying Engine.IO Socket.
*/
public get request(): IncomingMessage {
public get request(): SocketRequest {
return this.client.request;
}

Expand Down