public interface NetcodeClient
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnect and terminate the client.
|
ChannelConfiguration |
getChannelConfiguration()
Get the configuration of the connected channel.
|
java.lang.String |
getUserId()
Get the userId of this client.
|
java.lang.String[] |
getUsers()
Get a list of all members of the channel.
|
void |
send(java.io.Serializable payload)
Send the given object to all members of the channel
|
void |
sendPrivately(java.lang.String userId,
java.io.Serializable payload)
Send the given object to the member of the channel with the given userId.
|
void |
setMessageHandler(MessageHandler handler)
Replace the message handler.
|
void disconnect()
throws java.io.IOException
java.io.IOExceptionvoid send(java.io.Serializable payload) throws java.io.IOException
java.io.IOExceptionvoid sendPrivately(java.lang.String userId,
java.io.Serializable payload)
throws java.io.IOException
java.io.IOExceptionjava.lang.String getUserId()
ChannelConfiguration getChannelConfiguration()
java.lang.String[] getUsers()
void setMessageHandler(MessageHandler handler)
handler - java.lang.NullPointerException - handler is nullCopyright © 2018. All Rights Reserved.