com.glines.socketio.server
Interface SocketIOInbound


public interface SocketIOInbound


Method Summary
 void onConnect(SocketIOOutbound outbound)
          Called when the connection is established.
 void onDisconnect(DisconnectReason reason, String errorMessage)
          Called when the socket connection is closed.
 void onMessage(int messageType, String message)
          Called one per arriving message.
 

Method Detail

onConnect

void onConnect(SocketIOOutbound outbound)
Called when the connection is established. This will only ever be called once.

Parameters:
outbound - The SocketOutbound associated with the connection

onDisconnect

void onDisconnect(DisconnectReason reason,
                  String errorMessage)
Called when the socket connection is closed. This will only ever be called once. This method may be called instead of onConnect() if the connection handshake isn't completed successfully.

Parameters:
reason - The reason for the disconnect.
errorMessage - Possibly non null error message associated with the reason for disconnect.

onMessage

void onMessage(int messageType,
               String message)
Called one per arriving message.

Parameters:
messageType -
message -


Copyright © 2010-2011. All Rights Reserved.