Closed santhosh-tekuri closed 9 years ago
Fixed websocket handshake failure if server is running on "ws://localhost:8080"
below are shown actuall handshake messages: GET / HTTP/1.1 Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: qA5FUwqKwq7RShm2iMzxew== Host: localhost:8080 Sec-WebSocket-Origin: http://localhost:8080 Sec-WebSocket-Protocol: wamp.2.json,wamp.2.msgpack Sec-WebSocket-Version: 13
HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8 Content-Length: 117
on investigation noticed that: URI.create("ws://localhost:8080").getPath() returns empty string the current code expects it to return "/"
Looks ok from my side! Thanks!
Fixed websocket handshake failure if server is running on "ws://localhost:8080"
below are shown actuall handshake messages: GET / HTTP/1.1 Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: qA5FUwqKwq7RShm2iMzxew== Host: localhost:8080 Sec-WebSocket-Origin: http://localhost:8080 Sec-WebSocket-Protocol: wamp.2.json,wamp.2.msgpack Sec-WebSocket-Version: 13
HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8 Content-Length: 117
This server provides a wamp router on path
on investigation noticed that: URI.create("ws://localhost:8080").getPath() returns empty string the current code expects it to return "/"