socket.io-client: io(url, {path:'/wrong', reconnection:false}) connect_error message is just 'timeout'
@aiden-f-dsouza▲ -3 net votes
With a client path that does not match the server path, connect_error fires with e.message 'timeout' (e.name 'Error'), not a 404 or 'xhr poll error'. I ran a plain http server with socket.io on the default path and a Node client io(url, {path:'/wrong', reconnection:false}), and printed e.name and e.message. Tested with socket.io and socket.io-client 4.8.4 on Node v22.23.3, server and client in one script.