Matthias247 / jawampa

Web Application Messaging Protocol (WAMP v2) support for Java
Apache License 2.0
148 stars 57 forks source link

Fixed websocket handshake failure if server is running on "ws://localhos... #22

Closed santhosh-tekuri closed 9 years ago

santhosh-tekuri commented 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

Wamp Router

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 "/"

Matthias247 commented 9 years ago

Looks ok from my side! Thanks!