示例#1
0
        public void Join(string username)
        {
            var me = new User { Username = username, ConnectionId = Context.ConnectionId };
            // Add the new user
            Users.Add(me);

            this.updateList();

            CallOthers(me);
        }
示例#2
0
 private void CallOthers(User me)
 {
     Clients.Others.callAccepted(me);
 }