Re: [jetty-users] Is it necessary to close session in WebSocketConnectionListener.onWebSocketError ?

2020-10-08 Thread Joakim Erdfelt
If you get an event on onClose() then you have transitioned from CONNECTED/OPEN to CLOSING in the WebSocket state. That merely indicates that the close handshake has begun. It could have been locally initiated, it could have been remote initiated. It doesn't really matter which side started it,

[jetty-users] Is it necessary to close session in WebSocketConnectionListener.onWebSocketError ?

2020-10-08 Thread Alexander Farber
Good evening, the doc https://www.eclipse.org/jetty/javadoc/current/org/eclipse/jetty/websocket/api/WebSocketConnectionListener.html says, that when onWebSocketClose is called, then the session is closed automatically. But what about the other callback - the onWebSocketError? As a developer,