|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SocketIOConnection
| Nested Class Summary | |
|---|---|
static interface |
SocketIOConnection.Factory
|
static interface |
SocketIOConnection.SocketIOConnectionListener
|
| Method Summary | |
|---|---|
void |
close()
Initiate an orderly close of the connection. |
void |
connect()
Initiate a connection attempt. |
void |
disconnect()
Forcefully disconnect the connection, discarding any unsent messages. |
ConnectionState |
getConnectionState()
Return the current socket connection state. |
void |
sendMessage(int messageType,
String message)
Send a message. |
void |
sendMessage(String message)
Send a message. |
| Method Detail |
|---|
void connect()
onConnect will be called. If the connection
attempt fails, then
onDisonnect will
be called.
IllegalStateException - if the socket is not CLOSED.void disconnect()
void close()
IllegalStateException - if the socket is not CONNECTED.ConnectionState getConnectionState()
void sendMessage(String message)
throws SocketIOException
message -
IllegalStateException - if the socket is not CONNECTED.
SocketIOException
void sendMessage(int messageType,
String message)
throws SocketIOException
message -
IllegalStateException - if the socket is not CONNECTED.
SocketIOMessageParserException - if the message type parser encode() failed.
SocketIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||