|Re: [jetty-users] WebSocketListener clarification|
Hi,A couple of questions about the WebSocketListener interface, which is not completely clear by reading the Javadoc.1) Concurrent invokesMethods are always invoked one at a time?So, for example, onWebSocketError() is never concurrently invoked with onWebSocketText().
2)onWebSocketClose and onWebSocketError are never both invoked at the end of the lifecycle of a listener. If onWebSocketError is invoked, onWebSocketClose is never invoked, right?
3)The first method invoked is always onWebSocketConnect?For example, onWebSocketError is never invoked as the first operation?
4)So the lifecycle of a WebSocketListener is roughly as follows:onWebSocketConnect() -> followed by0 or more onWebSocketBinary() or onWebSocketText() (sequentiel) -> followed byonWebSocketError or onWebSocketClose -> no listener methods is invoked after this.
Back to the top