public interface Broadcaster
Modifier and Type | Method and Description |
---|---|
void |
broadcast(Iterable<? extends WebSocket> recipients,
byte[] binary)
Broadcasts the provided binary content to the specified recipients.
|
void |
broadcast(Iterable<? extends WebSocket> recipients,
String text)
Broadcasts the provided text content to the specified recipients.
|
void |
broadcastFragment(Iterable<? extends WebSocket> recipients,
byte[] binary,
boolean last)
Broadcasts the provided fragmented binary content to the specified recipients.
|
void |
broadcastFragment(Iterable<? extends WebSocket> recipients,
String text,
boolean last)
Broadcasts the provided fragmented text content to the specified recipients.
|
void broadcast(Iterable<? extends WebSocket> recipients, String text)
recipients
- the recipients of the provided text content.text
- textual content.void broadcast(Iterable<? extends WebSocket> recipients, byte[] binary)
recipients
- the recipients of the provided binary content.binary
- binary content.void broadcastFragment(Iterable<? extends WebSocket> recipients, String text, boolean last)
recipients
- the recipients of the provided fragmented text content.text
- fragmented textual content.last
- true if this is the last fragment, otherwise false.void broadcastFragment(Iterable<? extends WebSocket> recipients, byte[] binary, boolean last)
recipients
- the recipients of the provided fragmented binary content.binary
- fragmented binary content.last
- true if this is the last fragment, otherwise false.Copyright © 2014 Oracle Corporation. All rights reserved.