We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daabf82 commit 2d733e3Copy full SHA for 2d733e3
example/ChatClient.java
@@ -12,6 +12,8 @@
12
import javax.swing.JTextArea;
13
import javax.swing.JTextField;
14
15
+import android.util.Log;
16
+
17
import net.tootallnate.websocket.WebSocketClient;
18
import net.tootallnate.websocket.WebSocketDraft;
19
@@ -38,6 +40,11 @@ public void onClose() {
38
40
ta.append("You have been disconnected from: " + getURI() + "\n");
39
41
}
42
43
+ public void onIOError(IOException ex) {
44
+ super.onIOError(ex);
45
+ ta.append("Network problem ...\n");
46
+ }
47
48
/**
49
* The JFrame for our Chat client.
50
*/
0 commit comments