Package org.atmosphere.socketio
Interface SocketIOOutbound
-
- All Known Subinterfaces:
SocketIOSessionOutbound,SocketIOWebSocketSessionWrapper
- All Known Implementing Classes:
JSONPPollingTransport.XHRPollingSessionHelper,WebSocketTransport.SocketIOWebSocketSessionWrapperImpl,XHRPollingTransport.XHRPollingSessionHelper,XHRTransport.XHRSessionHelper
public interface SocketIOOutbound- Author:
- Sebastien Dionne : sebastien.dionne@gmail.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()force close connectionvoiddisconnect()disconnect the current connectionvoidsendMessage(java.lang.String message)Send a message to the client.voidsendMessage(java.util.List<SocketIOPacketImpl> messages)Send messages to the client.voidsendMessage(SocketIOPacket packet)Send a message to the client formatted is SocketIO format.
-
-
-
Method Detail
-
disconnect
void disconnect()
disconnect the current connection
-
close
void close()
force close connection
-
sendMessage
void sendMessage(java.lang.String message) throws SocketIOExceptionSend a message to the client. If the session is still active, the message will be cached if the connection is closed.- Parameters:
message- The message to send- Throws:
SocketIOException
-
sendMessage
void sendMessage(SocketIOPacket packet) throws SocketIOException
Send a message to the client formatted is SocketIO format. If the session is still active, the message will be cached if the connection is closed.- Parameters:
packet- The message to send- Throws:
SocketIOException
-
sendMessage
void sendMessage(java.util.List<SocketIOPacketImpl> messages) throws SocketIOException
Send messages to the client. If the session is still active, the messages will be cached if the connection is closed.- Parameters:
packet- The message to send- Throws:
SocketIOException
-
-