Community
Participate
Working Groups
please, introduce a function like: EndPoint Connection.getEndPoint(); it's not possible to determine remote address/port from WebSocket
Greetings, Jetty has an AbstractConnection.getEndPoint() method that you should be able to use by adding a following method to your class. public static EndPoint getEndPoint(Connection connection) { EndPoint endPoint = null; if (connection != null && (connection instanceof AbstractConnection)) { endPoint = ((AbstractConnection)connection).getEndPoint(); } return endPoint; } -Michael
Greg, could you please review this ticket for possible inclusion of suggested method Connection.getEndPoint() into Jetty 7.5.0 release. -Michael
Resolved -> Closed