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 a6a3b99 commit 3cbe3eeCopy full SHA for 3cbe3ee
src/com/codebutler/android_websockets/SocketIOClient.java
@@ -129,7 +129,8 @@ public void onMessage(String message) {
129
int code = Integer.parseInt(parts[0]);
130
switch (code) {
131
case 1:
132
- onConnect();
+ // connect
133
+ mHandler.onConnect();
134
break;
135
case 2:
136
// heartbeat
@@ -239,7 +240,6 @@ public void run() {
239
240
mClient.send("2:::");
241
}
242
}, mHeartbeat);
- mHandler.onConnect();
243
244
}, null);
245
mClient.connect();
0 commit comments