Namespace: PlayerIOClient
Language: C# / .NET
A connection into a running Player.IO multiplayer room
Here is an example of joining a multiplayer room and listening to all messages
Properties | |||
|---|---|---|---|
| public bool |
Is the connection currently connected to a remote host? |
||
Methods | |||
| public void |
Add a disconnect handler to the OnDisconnect event |
||
| public void |
Add a message handler to the OnMessage event |
||
| public void |
Disconnect from the game room |
||
| public void |
Send a message to the connected client |
||
| public void |
Send a message to the connected client without first having to construct a Message object. |
||
Is the connection currently connected to a remote host?
Add a disconnect handler to the OnDisconnect event
| DisconnectEventHandler | disconnectHandler |
Add a message handler to the OnMessage event
| MessageReceivedEventHandler | onMessageHandler |
Disconnect from the game room
Send a message to the connected client
| Message | message |
| The message to send |
Send a message to the connected client without first having to construct a Message object.
| string | type |
| The type of message to send | |
| params object[] | parameters |
| The data to put in the message to send |