Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure connections are properly multiplexed
When passing the same `options` argument for two distinct Socket instances, a new Manager was created: ```js const opts = {}; const socket1 = io("/foo", opts); const socket2 = io("/bar", opts); console.log(socket1.io === socket2.io); // false ``` This bug was introduced by [1]. Note: the `options` argument is modified at the `socket.io-client` level (path, query) and at the `engine.io-client` level (host, port), which may not be optimal. [1]: 7a0c2b5 Related: socketio/socket.io#3898
- Loading branch information