org.atmosphere.samples.chat
Class NativeSocketIOAtmosphereHandler
java.lang.Object
org.atmosphere.socketio.cpr.SocketIOAtmosphereHandler
org.atmosphere.samples.chat.NativeSocketIOAtmosphereHandler
- All Implemented Interfaces:
- org.atmosphere.cpr.AtmosphereHandler
@AtmosphereHandlerService(path="/*",
supportSession=true,
broadcasterCache=org.atmosphere.socketio.cache.SocketIOBroadcasterCache.class)
public class NativeSocketIOAtmosphereHandler- extends org.atmosphere.socketio.cpr.SocketIOAtmosphereHandler
Simple SocketIOAtmosphereHandler that implements the logic to build a
SocketIO Chat application.
- Author:
- Sebastien Dionne : sebastien.dionne@gmail.com
| Fields inherited from class org.atmosphere.socketio.cpr.SocketIOAtmosphereHandler |
SOCKETIO_SESSION_ID, SOCKETIO_SESSION_OUTBOUND |
|
Method Summary |
void |
onConnect(org.atmosphere.cpr.AtmosphereResource r,
org.atmosphere.socketio.SocketIOSessionOutbound outbound)
|
void |
onDisconnect(org.atmosphere.cpr.AtmosphereResource r,
org.atmosphere.socketio.SocketIOSessionOutbound outbound,
org.atmosphere.socketio.transport.DisconnectReason reason)
|
void |
onMessage(org.atmosphere.cpr.AtmosphereResource r,
org.atmosphere.socketio.SocketIOSessionOutbound outbound,
String message)
|
| Methods inherited from class org.atmosphere.socketio.cpr.SocketIOAtmosphereHandler |
destroy, onRequest, onStateChange |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeSocketIOAtmosphereHandler
public NativeSocketIOAtmosphereHandler()
onConnect
public void onConnect(org.atmosphere.cpr.AtmosphereResource r,
org.atmosphere.socketio.SocketIOSessionOutbound outbound)
throws IOException
- Specified by:
onConnect in class org.atmosphere.socketio.cpr.SocketIOAtmosphereHandler
- Throws:
IOException
onMessage
public void onMessage(org.atmosphere.cpr.AtmosphereResource r,
org.atmosphere.socketio.SocketIOSessionOutbound outbound,
String message)
- Specified by:
onMessage in class org.atmosphere.socketio.cpr.SocketIOAtmosphereHandler
onDisconnect
public void onDisconnect(org.atmosphere.cpr.AtmosphereResource r,
org.atmosphere.socketio.SocketIOSessionOutbound outbound,
org.atmosphere.socketio.transport.DisconnectReason reason)
- Specified by:
onDisconnect in class org.atmosphere.socketio.cpr.SocketIOAtmosphereHandler
Copyright © 2014. All Rights Reserved.