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

Commit

Permalink
Merge pull request #7 from ClusterWS/next
Browse files Browse the repository at this point in the history
Fixed bug where `on` did not receive data
  • Loading branch information
Yegorisa authored Sep 12, 2018
2 parents 639a5c0 + 1c6c31f commit 50deb49
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<p align="center">
<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>
<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>
<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>
<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>
</p>

Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/clusterws/ClusterWS.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public ClusterWS setClusterWSListener(IClusterWSListener clusterWSListener) {
}

public void connect() {
createSocket();
mSocket.connect();
}

Expand Down Expand Up @@ -171,7 +170,6 @@ public void run() {

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

private void onMessageReceived(String message) {
System.out.println("MESSAGE IS " + message);
mMessageHandler.messageDecode(ClusterWS.this, message);
}
}

0 comments on commit 50deb49

Please sign in to comment.