diff --git a/src/main/groovy/org/vertx/groovy/core/http/WebSocket.groovy b/src/main/groovy/org/vertx/groovy/core/http/WebSocket.groovy index 381f17e..58e1f7e 100644 --- a/src/main/groovy/org/vertx/groovy/core/http/WebSocket.groovy +++ b/src/main/groovy/org/vertx/groovy/core/http/WebSocket.groovy @@ -95,4 +95,9 @@ interface WebSocket extends ReadStream, WriteStream { * Return the local address for this socket */ InetSocketAddress localAddress() + + /** + * The uri the websocket handshake occurred at + */ + String uri() } diff --git a/src/main/groovy/org/vertx/groovy/core/http/impl/DefaultWebSocket.groovy b/src/main/groovy/org/vertx/groovy/core/http/impl/DefaultWebSocket.groovy index cfbd31e..1ff7943 100644 --- a/src/main/groovy/org/vertx/groovy/core/http/impl/DefaultWebSocket.groovy +++ b/src/main/groovy/org/vertx/groovy/core/http/impl/DefaultWebSocket.groovy @@ -142,5 +142,10 @@ class DefaultWebSocket implements WebSocket { @Override InetSocketAddress remoteAddress() { jWebSocket.remoteAddress() + } + + @Override + String uri() { + jWebSocket.uri() } }