mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-08 22:48:20 -05:00
refactor(eio-client): improve transports type (#5188)
Related: https://github.com/socketio/socket.io/issues/5187
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user