use of org.eclipse.jetty.websocket.api.annotations.OnWebSocketError in project Openfire by igniterealtime.
the class XmppWebSocket method onError.
@OnWebSocketError
public void onError(Throwable error) {
Log.error("Error detected; session: " + wsSession, error);
closeStream(new StreamError(StreamError.Condition.internal_server_error));
try {
if (wsSession != null) {
wsSession.disconnect();
}
} catch (Exception e) {
Log.error("Error disconnecting websocket", e);
}
}
Aggregations