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="/*",
broadcasterCache=org.atmosphere.cache.SessionBroadcasterCache.class,
supportSession=true)
public class NativeSocketIOAtmosphereHandler- extends SocketIOAtmosphereHandler
Simple SocketIOAtmosphereHandler that implements the logic to build a
SocketIO Chat application.
- Author:
- Sebastien Dionne : sebastien.dionne@gmail.com
| 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,
SocketIOSessionOutbound outbound)
throws IOException
- Specified by:
onConnect in class SocketIOAtmosphereHandler
- Throws:
IOException
onMessage
public void onMessage(org.atmosphere.cpr.AtmosphereResource r,
SocketIOSessionOutbound outbound,
String message)
- Specified by:
onMessage in class SocketIOAtmosphereHandler
onDisconnect
public void onDisconnect(org.atmosphere.cpr.AtmosphereResource r,
SocketIOSessionOutbound outbound,
DisconnectReason reason)
- Specified by:
onDisconnect in class SocketIOAtmosphereHandler
Copyright © 2013. All Rights Reserved.