public interface WebSocketSession
| Modifier and Type | Field and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
OBJECT_MAPPER |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(String code,
String reason) |
default Object |
getAttribute(Object key) |
Map<Object,Object> |
getAttributes() |
void |
register(WebSocketListener listener) |
void |
remove(WebSocketListener listener) |
void |
send(String type,
byte[] message) |
default void |
send(String type,
Object object) |
default void |
send(String type,
String message) |
void register(WebSocketListener listener) throws IOException
IOExceptionvoid remove(WebSocketListener listener) throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionvoid close(String code, String reason) throws IOException
IOExceptionvoid send(String type, byte[] message) throws IOException
IOExceptiondefault void send(String type, String message) throws IOException
IOExceptiondefault void send(String type, Object object) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.