public OnSubscribed ( string channels, bool results ) : void | ||
channels | string | |
results | bool | |
return | void |
public void OnSubscribed(string[] channels, bool[] results)
{
// this demo can automatically send a "hi" to subscribed channels. in a game you usually only send user's input!!
if (this.DemoPublishOnSubscribe)
{
foreach (string channel in channels)
{
this.chatClient.PublishMessage(channel, String.Format("/{0} has joined the chat", UserName)); // you don't HAVE to send a msg on join but you could.
}
}
}