Clarify the purpose of an addListener method

This commit is contained in:
Jon Chambers
2023-04-07 11:21:17 -04:00
committed by Jon Chambers
parent fd5e9ea016
commit d1eb247d8c
4 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ public class WebSocketSessionContext {
return authenticated;
}
public synchronized void addListener(WebSocketEventListener listener) {
public synchronized void addWebsocketClosedListener(WebSocketEventListener listener) {
if (!closed) this.closeListeners.add(listener);
else listener.onWebSocketClose(this, 1000, "Closed");
}