Skip to content

Commit 6cafb71

Browse files
committed
Added getter for the socked in WebSocketClient
Getter to allow hostname verification for android
1 parent cb70811 commit 6cafb71

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/org/java_websocket/client/WebSocketClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ public Draft getDraft() {
100100
return draft;
101101
}
102102

103+
/**
104+
* Returns the socket to allow Hostname Verification
105+
* @return the socket used for this connection
106+
*/
107+
public Socket getSocket() {
108+
return socket;
109+
}
110+
103111
/**
104112
* Initiates the websocket connection. This method does not block.
105113
*/

0 commit comments

Comments
 (0)