Skip to content

Commit

Permalink
fix(types): Use correct socket.io options typing
Browse files Browse the repository at this point in the history
Co-Authored-By: fuenfundachtzig <8006302+fuenfundachtzig@users.noreply.github.com>
  • Loading branch information
delucis and fuenfundachtzig committed Feb 21, 2022
1 parent 5245060 commit 453f530
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/client/transport/socketio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ import type {
ChatMessage,
} from '../../types';

type SocketOpts = Partial<
ioNamespace.SocketOptions & ioNamespace.ManagerOptions
>;

interface SocketIOOpts {
server?: string;
socketOpts?: ioNamespace.SocketOptions;
socketOpts?: SocketOpts;
}

type SocketIOTransportOpts = TransportOpts &
Expand All @@ -42,7 +46,7 @@ type SocketIOTransportOpts = TransportOpts &
export class SocketIOTransport extends Transport {
server: string;
socket: ioNamespace.Socket;
socketOpts: ioNamespace.SocketOptions;
socketOpts: SocketOpts;

/**
* Creates a new Multiplayer instance.
Expand Down

0 comments on commit 453f530

Please sign in to comment.