Class EndpointDispatcher
java.lang.Object
javax.websocket.Endpoint
org.javalite.activeweb.websockets.EndpointDispatcher
- All Implemented Interfaces:
javax.websocket.MessageHandler
,javax.websocket.MessageHandler.Whole<String>
public class EndpointDispatcher
extends javax.websocket.Endpoint
implements javax.websocket.MessageHandler.Whole<String>
Interesting advice: https://stackoverflow.com/questions/50114490/java-websocket-session-times-out-regardless-the-value-of-setmaxidletimeout
Another: https://yishanhe.net/how-to-keep-your-websocket-session-alive/
Java Client: https://github.com/eugenp/tutorials/tree/master/spring-boot-modules/spring-boot-client/src/main/java/com/baeldung/websocket/client
-
Constructor Details
-
EndpointDispatcher
public EndpointDispatcher()
-
-
Method Details
-
onOpen
public final void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config)- Specified by:
onOpen
in classjavax.websocket.Endpoint
-
onClose
public final void onClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason)- Overrides:
onClose
in classjavax.websocket.Endpoint
-
onError
- Overrides:
onError
in classjavax.websocket.Endpoint
-
onMessage
- Specified by:
onMessage
in interfacejavax.websocket.MessageHandler.Whole<String>
-