diff --git a/packages/engine.io-client/lib/socket.ts b/packages/engine.io-client/lib/socket.ts index 761ab71e7a..0eb26ce46a 100644 --- a/packages/engine.io-client/lib/socket.ts +++ b/packages/engine.io-client/lib/socket.ts @@ -85,7 +85,9 @@ export interface SocketOptions { * * @default ['polling','websocket', 'webtransport'] */ - transports?: string[] | TransportCtor[]; + transports?: + | ("polling" | "websocket" | "webtransport" | string)[] + | TransportCtor[]; /** * Whether all the transports should be tested, instead of just the first one.