Fix for web socket connection

Now we can connect to a remote service!