org.atmosphere.samples.chat
Class NativeSocketIOAtmosphereHandler

java.lang.Object
  extended by org.atmosphere.socketio.cpr.SocketIOAtmosphereHandler
      extended by org.atmosphere.samples.chat.NativeSocketIOAtmosphereHandler
All Implemented Interfaces:
AtmosphereHandler

@AtmosphereHandlerService(path="/*")
public class NativeSocketIOAtmosphereHandler
extends SocketIOAtmosphereHandler

Simple SocketIOAtmosphereHandler that implements the logic to build a SocketIO Chat application.

Author:
Sebastien Dionne : sebastien.dionne@gmail.com

Field Summary
 
Fields inherited from class org.atmosphere.socketio.cpr.SocketIOAtmosphereHandler
SOCKETIO_SESSION_ID, SOCKETIO_SESSION_OUTBOUND
 
Constructor Summary
NativeSocketIOAtmosphereHandler()
           
 
Method Summary
 void onConnect(AtmosphereResource r, SocketIOSessionOutbound outbound)
           
 void onDisconnect(AtmosphereResource r, SocketIOSessionOutbound outbound, DisconnectReason reason)
           
 void onMessage(AtmosphereResource r, 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
 

Constructor Detail

NativeSocketIOAtmosphereHandler

public NativeSocketIOAtmosphereHandler()
Method Detail

onConnect

public void onConnect(AtmosphereResource r,
                      SocketIOSessionOutbound outbound)
               throws IOException
Specified by:
onConnect in class SocketIOAtmosphereHandler
Throws:
IOException

onMessage

public void onMessage(AtmosphereResource r,
                      SocketIOSessionOutbound outbound,
                      String message)
Specified by:
onMessage in class SocketIOAtmosphereHandler

onDisconnect

public void onDisconnect(AtmosphereResource r,
                         SocketIOSessionOutbound outbound,
                         DisconnectReason reason)
Specified by:
onDisconnect in class SocketIOAtmosphereHandler


Copyright © 2013. All Rights Reserved.