Skip to content

Commit

Permalink
update Java-WebSocket to 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jebej committed May 28, 2020
1 parent 787a11a commit 8282a50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/matlab-websocket/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<dependency>
<groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId>
<version>1.3.9</version>
<version>1.5.1</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void onClose( WebSocket conn, int code, String reason, boolean remote ) {

// Retrieve a connection by hashcode
public WebSocket getConnection( int hashCode ) {
Collection<WebSocket> conns = connections();
Collection<WebSocket> conns = getConnections();
synchronized ( conns ) {
for( WebSocket c : conns ) {
if (c.hashCode() == hashCode) {
Expand Down Expand Up @@ -102,7 +102,7 @@ public void sendTo( int hashCode, byte[] bytes ) {

// Send text message to all clients
public void sendToAll( String message ) {
Collection<WebSocket> conns = connections();
Collection<WebSocket> conns = getConnections();
synchronized ( conns ) {
for( WebSocket c : conns ) {
c.send( message );
Expand All @@ -112,7 +112,7 @@ public void sendToAll( String message ) {

// Send binary message to all clients
public void sendToAll( ByteBuffer blob ) {
Collection<WebSocket> conns = connections();
Collection<WebSocket> conns = getConnections();
synchronized ( conns ) {
for( WebSocket c : conns ) {
c.send( blob );
Expand All @@ -132,7 +132,7 @@ public void close( int hashCode ) {

// Close all connections
public void closeAll() {
Collection<WebSocket> conns = connections();
Collection<WebSocket> conns = getConnections();
synchronized ( conns ) {
for( WebSocket c : conns ) {
c.close();
Expand Down

0 comments on commit 8282a50

Please sign in to comment.