This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The RealTime controller of XSockets.NET | |
public class Chat : XSocketController | |
{ | |
public string Nickname { get; set; } | |
public void ChatMessage(string text) | |
{ | |
this.SendToAll(new { text, date = DateTime.Now, nickName = this.Nickname },"onChatMessage"); | |
} | |
} |