public class WebSocketPushBroadcaster extends Object
| Constructor and Description |
|---|
WebSocketPushBroadcaster(IWebSocketConnectionRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(ConnectedMessage connection,
IWebSocketPushMessage message)
Processes the given message in the page and session identified by the given Web Socket connection.
|
void |
broadcastAll(Application application,
IWebSocketPushMessage message)
Processes the given message in all pages that have active Web Socket connections.
|
public WebSocketPushBroadcaster(IWebSocketConnectionRegistry registry)
public void broadcast(ConnectedMessage connection, IWebSocketPushMessage message)
WebSocketSettings.setWebSocketPushMessageExecutor(org.apache.wicket.protocol.ws.concurrent.Executor)
to move processing to background threads.
If the given connection is no longer open then the broadcast is silently ignored.connection - The Web Socket connection that identifies the page and sessionmessage - The push message eventpublic void broadcastAll(Application application, IWebSocketPushMessage message)
WebSocketSettings.setWebSocketPushMessageExecutor(org.apache.wicket.protocol.ws.concurrent.Executor)
to move processing to background threads.
If some connections are not in valid state they are silently ignored.application - The wicket applicationmessage - The push message eventCopyright © 2006–2018 Apache Software Foundation. All rights reserved.