Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/main/java/org/java_websocket/WebSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,18 @@ public interface WebSocket {
boolean hasBufferedData();

/**
* Returns the address of the endpoint this socket is connected to, or{@code null} if it is
* Returns the address of the endpoint this socket is connected to, or {@code null} if it is
* unconnected.
*
* @return never returns null
* @return the remote socket address or null, if this socket is unconnected
*/
InetSocketAddress getRemoteSocketAddress();

/**
* Returns the address of the endpoint this socket is bound to.
* Returns the address of the endpoint this socket is bound to, or {@code null} if it is not
* bound.
*
* @return never returns null
* @return the local socket address or null, if this socket is not bound
*/
InetSocketAddress getLocalSocketAddress();

Expand Down