188189190191192193194195
@Override public void onClose(int closeCode, String message) { IKey key = getRegistryKey(); broadcastMessage(new ClosedMessage(getApplication(), getSessionId(), key)); connectionRegistry.removeConnection(getApplication(), getSessionId(), key); }
5758596061626364656667
onConnect(message); } else if (payload instanceof WebSocketClosedPayload) { WebSocketClosedPayload connectedPayload = (WebSocketClosedPayload) payload; ClosedMessage message = connectedPayload.getMessage(); onClose(message); } else if (payload instanceof WebSocketPushPayload) { WebSocketPushPayload pushPayload = (WebSocketPushPayload) payload;
7273747576777879808182
onConnect(message); } else if (wsPayload instanceof WebSocketClosedPayload) { WebSocketClosedPayload closedPayload = (WebSocketClosedPayload) wsPayload; ClosedMessage message = closedPayload.getMessage(); onClose(message); } else if (wsPayload instanceof WebSocketPushPayload) { WebSocketPushPayload pushPayload = (WebSocketPushPayload) wsPayload;
155156157158159160161162
183184185186187188189190
187188189190191192193194
114115116117118119120121
} @Override public void onClose(int closeCode, String message) { broadcastMessage(new ClosedMessage(getApplication(), getSessionId(), pageId)); connectionRegistry.removeConnection(application, sessionId, pageId); }
72737475767778798081
onConnect(message); } else if (wsPayload instanceof WebSocketClosedPayload) { WebSocketClosedPayload connectedPayload = (WebSocketClosedPayload) wsPayload; ClosedMessage message = connectedPayload.getMessage(); onClose(message); } } }
120121122123124125126127
} @Override public void onClose(int closeCode, String message) { broadcastMessage(new ClosedMessage(getApplication(), getSessionId(), pageId)); connectionRegistry.removeConnection(getApplication(), getSessionId(), pageId); }