public interface WebSocketSession
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
IOException
void remove(WebSocketListener listener) throws IOException
IOException
void close() throws IOException
IOException
void close(String code, String reason) throws IOException
IOException
void send(String type, byte[] message) throws IOException
IOException
default void send(String type, String message) throws IOException
IOException
default void send(String type, Object object) throws IOException
IOException
Copyright © 2015. All Rights Reserved.