Skip to content

Commit 453f530

Browse files
fix(types): Use correct socket.io options typing
Co-Authored-By: fuenfundachtzig <[email protected]>
1 parent 5245060 commit 453f530

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/client/transport/socketio.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ import type {
2424
ChatMessage,
2525
} from '../../types';
2626

27+
type SocketOpts = Partial<
28+
ioNamespace.SocketOptions & ioNamespace.ManagerOptions
29+
>;
30+
2731
interface SocketIOOpts {
2832
server?: string;
29-
socketOpts?: ioNamespace.SocketOptions;
33+
socketOpts?: SocketOpts;
3034
}
3135

3236
type SocketIOTransportOpts = TransportOpts &
@@ -42,7 +46,7 @@ type SocketIOTransportOpts = TransportOpts &
4246
export class SocketIOTransport extends Transport {
4347
server: string;
4448
socket: ioNamespace.Socket;
45-
socketOpts: ioNamespace.SocketOptions;
49+
socketOpts: SocketOpts;
4650

4751
/**
4852
* Creates a new Multiplayer instance.

0 commit comments

Comments
 (0)