Skip to content

Commit

Permalink
Hopefully solves #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul2708 committed Dec 5, 2020
1 parent 1b9d4fe commit a7c3f30
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public void send(Object data) {
}

public boolean hasSameSocket(WsContext context) {
if (context == null || socket == null) {
return false;
}

return socket.getSessionId().equals(context.getSessionId());
}

Expand All @@ -56,4 +60,4 @@ public UserRole getRole() {
public WsContext getSocket() {
return socket;
}
}
}

0 comments on commit a7c3f30

Please sign in to comment.