Describe the bug
const options = {transports: ["websocket","polling"]};
const s = io(<URL>, options);
options object is modified, and transports is set to [ class WS, class XHR ]
Not really a big issue, but quite unexpected and an unusual behaviour. Especially when you need to serialize the options object after connection.
Expected behavior
options object should not be mutated.