fixed warn:websocket connection invalid due to non-ws requests to /socket.io/ urls