public class WSConnectionContext extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
registerConnectionListener(WSConnectionListener listener) |
static boolean |
removeConnectionListener(WSConnectionListener listener) |
static void |
sendMessage(ChannelBroadcastMessage message)
Send message to all connections subscribed to the channel.
|
public static boolean registerConnectionListener(WSConnectionListener listener)
public static boolean removeConnectionListener(WSConnectionListener listener)
public static void sendMessage(ChannelBroadcastMessage message) throws javax.websocket.EncodeException, IOException
message - messagejavax.websocket.EncodeException - if message cannot be serializedIOException - if any i/o error occurs when try to send message to clientChannelBroadcastMessage.getChannel()Copyright © 2012–2017 Codenvy, S.A.. All rights reserved.