Skip to content

Commit dc7a7d6

Browse files
author
Don Park
committed
signature mismatch was keeping WebSocketClient.onError from being called
1 parent 16242e9 commit dc7a7d6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/net/tootallnate/websocket/WebSocketClient.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ private void sendHandshake() throws IOException , InvalidHandshakeException , In
258258
* @param conn
259259
* @param message
260260
*/
261+
@Override
261262
public void onMessage( WebSocket conn, String message ) {
262263
onMessage( message );
263264
}
@@ -267,6 +268,7 @@ public void onMessage( WebSocket conn, String message ) {
267268
*
268269
* @param conn
269270
*/
271+
@Override
270272
public void onOpen( WebSocket conn ) {
271273
onOpen();
272274
}
@@ -276,6 +278,7 @@ public void onOpen( WebSocket conn ) {
276278
*
277279
* @param conn
278280
*/
281+
@Override
279282
public void onClose( WebSocket conn ) {
280283
thread.interrupt();
281284
onClose();
@@ -286,7 +289,8 @@ public void onClose( WebSocket conn ) {
286289
*
287290
* @param conn
288291
*/
289-
public void onError( WebSocket conn, IOException ex ) {
292+
@Override
293+
public void onError( WebSocket conn, Exception ex ) {
290294
onError( ex );
291295
}
292296

0 commit comments

Comments
 (0)