Connect WebSocket relative to window.location

The client connects now to a WebSocket with a path relative to window.location