@Config @ManagedService(path="/chat", atmosphereConfig="org.atmosphere.cpr.CometSupport.maxInactiveActivity=120000") public class Chat extends java.lang.Object
ManagedService.| Constructor and Description |
|---|
Chat() |
| Modifier and Type | Method and Description |
|---|---|
void |
onDisconnect()
Invoked when the client disconnects or when the underlying connection is closed unexpectedly.
|
void |
onHeartbeat(org.atmosphere.cpr.AtmosphereResourceEvent event) |
Message |
onMessage(Message message)
Simple annotated class that demonstrate how
Encoder and {@link org.atmosphere.config.managed.Decoder
can be used. |
void |
onReady()
Invoked when the connection has been fully established and suspended, that is, ready for receiving messages.
|
public void onHeartbeat(org.atmosphere.cpr.AtmosphereResourceEvent event)
public void onReady()
public void onDisconnect()
Copyright © 2019. All Rights Reserved.