Modifier and Type | Method and Description |
---|---|
Client |
Clients.get(String clientId)
Returns the client with the specified client id.
|
Client |
Message.getFrom()
The originating client for this message.
|
Client |
Clients.getHost()
Returns the host for the channel associated with these clients.
|
Client |
Clients.me()
Returns your connected client for the associated channel.
|
Modifier and Type | Method and Description |
---|---|
List<Client> |
Clients.list()
Returns a list of the connected clients.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Clients.isMe(Client client)
Checks if the specified client is your client.
|
void |
Channel.OnClientConnectListener.onClientConnect(Client client)
Invoked on a client connect event.
|
void |
Channel.OnClientDisconnectListener.onClientDisconnect(Client client)
Invoked on a client disconnect event.
|
void |
Channel.OnConnectListener.onConnect(Client client)
Invoked on a connect event.
|
void |
Channel.OnDisconnectListener.onDisconnect(Client client)
Invoked on a disconnect event.
|
void |
Channel.publish(String event,
Object data,
Client client)
Send a message to the specified client on this channel.
|
void |
Channel.publish(String event,
Object data,
Client client,
byte[] payload)
Send a message and (binary) payload to the specified client on this channel.
|
Modifier and Type | Method and Description |
---|---|
void |
Application.connect(Map<String,String> attributes,
Result<Client> result)
Connect to the specified channel.
|
void |
Channel.connect(Map<String,String> attributes,
Result<Client> result)
Connect to the specified channel.
|
void |
Channel.connect(Result<Client> result)
Connect to the specified channel.
|
void |
Channel.connect(Uri url,
Map<String,String> attributes,
Result<Client> result) |
void |
Application.disconnect(boolean stopOnDisconnect,
Result<Client> result)
Disconnect from the specified channel.
|
void |
Player.disconnect(boolean stopOnDisconnect,
Result<Client> callback)
Disconnect from the media player.
|
void |
Application.disconnect(Result<Client> result) |
void |
Channel.disconnect(Result<Client> result)
Disconnect from the specified channel.
|
void |
Player.disconnect(Result<Client> result)
Disconnect from the specified channel.
|
void |
Channel.publish(String event,
Object data,
List<Client> clients)
Send a message to the specified clients on this channel.
|
void |
Channel.publish(String event,
Object data,
List<Client> clients,
byte[] payload)
Send a message and (binary) payload to the specified client on this channel.
|