|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WebSocketContext
Bidirectional TCP connection based on a HTTP upgrade, e.g. WebSocket. The context and its values are not thread safe. The DuplexListener thread normally is the only thread reading from the input stream.
| Method Summary | |
|---|---|
void |
close()
gracefully close the connection, waiting for unread messages. |
void |
close(int code,
java.lang.String message)
gracefully close the connection, waiting for unread messages. |
void |
disconnect()
Disconnect the connection. |
long |
getTimeout()
Gets the read timeout. |
void |
pong(byte[] value)
sends a pong message |
void |
setTimeout(long timeout)
Sets the read timeout. |
java.io.OutputStream |
startBinaryMessage()
Returns the output stream for a binary message. |
java.io.PrintWriter |
startTextMessage()
Returns the output stream for a binary message. |
| Method Detail |
|---|
java.io.OutputStream startBinaryMessage()
throws java.io.IOException
java.io.IOException
java.io.PrintWriter startTextMessage()
throws java.io.IOException
java.io.IOExceptionvoid setTimeout(long timeout)
long getTimeout()
void close()
void close(int code,
java.lang.String message)
void pong(byte[] value)
throws java.io.IOException
java.io.IOExceptionvoid disconnect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||