The resource part of the websocket-url not set correctly

The value that was set via setResourceName is not taken into account when generating the websocket url, and instead the static value "socket.io" is always used. This results in a redirect to the wrong url when socket.io is served in a subdirectory.