Broadcaster optimized to send the same text to a set of clients.Note
works with
DefaultWebSockets and inherited classes.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | broadcast(final Iterable<? extends WebSocket> recipients, final String text)
Implements org. Broadcasts the provided text content to the specified recipients. |
| public void | broadcast(final Iterable<? extends WebSocket> recipients, final byte[] binary)
Implements org. Broadcasts the provided binary content to the specified recipients. |
| public void | broadcastFragment(Iterable<? extends WebSocket> recipients, String text, boolean last)
Implements org. Broadcasts the provided fragmented text content to the specified recipients. |
| public void | broadcastFragment(Iterable<? extends WebSocket> recipients, byte[] binary, boolean last)
Implements org. Broadcasts the provided fragmented binary content to the specified recipients. |
| OptimizedBroadcaster | back to summary |
|---|---|
| public OptimizedBroadcaster() | |
| broadcast | back to summary |
|---|---|
| public void broadcast(final Iterable<? extends WebSocket> recipients, final String text) Implements org. Doc from org. Broadcasts the provided text content to the specified recipients.
| |
| broadcast | back to summary |
|---|---|
| public void broadcast(final Iterable<? extends WebSocket> recipients, final byte[] binary) Implements org. Doc from org. Broadcasts the provided binary content to the specified recipients.
| |
| broadcastFragment | back to summary |
|---|---|
| public void broadcastFragment(Iterable<? extends WebSocket> recipients, String text, boolean last) Implements org. Doc from org. Broadcasts the provided fragmented text content to the specified recipients.
| |
| broadcastFragment | back to summary |
|---|---|
| public void broadcastFragment(Iterable<? extends WebSocket> recipients, byte[] binary, boolean last) Implements org. Doc from org. Broadcasts the provided fragmented binary content to the specified recipients.
| |