Repository navigation
Commit 3df3fed
committed
fix(eio-client): restore default transport resolution
Keep transport names as the ordered list used for connection attempts, while
storing transport constructors in a separate lookup map. This restores default
transport resolution, keeps constructor-based transports for backward
compatibility, and avoids mutating user-provided transport arrays during
fallback/reconnect attempts.
New syntax:
```js
import { Socket, XHR, WebSocket } from "engine.io-client";
const socket = new Socket({
transportImplementations: [XHR, WebSocket]
});
```
Related:
- #5197
- #5327
- #5330
See also: socketio/engine.io-client@f4d898e1 parent aaf2af3 commit 3df3fed
2 files changed
Lines changed: 196 additions & 247 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments