Broadcaster, which iterates over set of clients and sends the same text of binary message
separately to each client. So the text/binary -> websocket-frame transformation is being done for each client
separately.
| 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(final Iterable<? extends WebSocket> recipients, final String text, final boolean last)
Implements org. Broadcasts the provided fragmented text content to the specified recipients. |
| public void | broadcastFragment(final Iterable<? extends WebSocket> recipients, final byte[] binary, final boolean last)
Implements org. Broadcasts the provided fragmented binary content to the specified recipients. |
| DummyBroadcaster | back to summary |
|---|---|
| public DummyBroadcaster() | |
| 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(final Iterable<? extends WebSocket> recipients, final String text, final boolean last) Implements org. Doc from org. Broadcasts the provided fragmented text content to the specified recipients.
| |
| broadcastFragment | back to summary |
|---|---|
| public void broadcastFragment(final Iterable<? extends WebSocket> recipients, final byte[] binary, final boolean last) Implements org. Doc from org. Broadcasts the provided fragmented binary content to the specified recipients.
| |