Skip to content

Commit

Permalink
Merge pull request #51 from LostInBrittany/master
Browse files Browse the repository at this point in the history
Issue #28 : Exposing uri() method
  • Loading branch information
LostInBrittany committed Jan 26, 2014
2 parents 6910c33 + 7a22681 commit 8f4bb14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/groovy/org/vertx/groovy/core/http/WebSocket.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,9 @@ interface WebSocket extends ReadStream<WebSocket>, WriteStream<WebSocket> {
* Return the local address for this socket
*/
InetSocketAddress localAddress()

/**
* The uri the websocket handshake occurred at
*/
String uri()
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,10 @@ class DefaultWebSocket implements WebSocket {
@Override
InetSocketAddress remoteAddress() {
jWebSocket.remoteAddress()
}

@Override
String uri() {
jWebSocket.uri()
}
}

0 comments on commit 8f4bb14

Please sign in to comment.