Skip to content
This repository was archived by the owner on Nov 2, 2020. It is now read-only.

Commit 50deb49

Browse files
authored
Merge pull request #7 from ClusterWS/next
Fixed bug where `on` did not receive data
2 parents 639a5c0 + 1c6c31f commit 50deb49

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<p align="center">
99
<a href="https://github.com/ClusterWS/ClusterWS-Client-Java/blob/master/LICENSE"><img src="https://img.shields.io/badge/LICENSE-MIT-AE1E80.svg?longCache=true&style=for-the-badge"></a>
10-
<a title="JitPack Version" href="https://jitpack.io/#ClusterWS/ClusterWS-Client-Java"><img src="https://img.shields.io/badge/JitPack-3.0.0-AE1E80.svg?longCache=true&style=for-the-badge"></a>
10+
<a title="JitPack Version" href="https://jitpack.io/#ClusterWS/ClusterWS-Client-Java"><img src="https://img.shields.io/badge/JitPack-3.0.2-AE1E80.svg?longCache=true&style=for-the-badge"></a>
1111
<a href="https://github.com/ClusterWS/ClusterWS-Client-JS/graphs/commit-activity"><img src="https://img.shields.io/badge/Maintain-Yes-AE1E80.svg?style=for-the-badge" alt="Maintain" /></a>
1212
</p>
1313

src/main/java/com/clusterws/ClusterWS.java

-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public ClusterWS setClusterWSListener(IClusterWSListener clusterWSListener) {
5454
}
5555

5656
public void connect() {
57-
createSocket();
5857
mSocket.connect();
5958
}
6059

@@ -171,7 +170,6 @@ public void run() {
171170

172171
@Override
173172
public void onBinaryMessage(ByteBuffer bytes) {
174-
System.out.println("GOT MESSAGE");
175173
byte[] arr = new byte[bytes.remaining()];
176174
bytes.get(arr);
177175
if (arr.length == 1 && arr[0] == 57) {
@@ -196,7 +194,6 @@ public void onMessage(String message) {
196194
}
197195

198196
private void onMessageReceived(String message) {
199-
System.out.println("MESSAGE IS " + message);
200197
mMessageHandler.messageDecode(ClusterWS.this, message);
201198
}
202199
}

0 commit comments

Comments
 (0)