Exemple #1
0
        public User(string name, string connectionId, openTok opentok)
        {
            this.Name = name;

            this.ConnectionId = connectionId;
            this.Opentok = opentok;
        }
Exemple #2
0
        public User GetConnected(string username, string Remote_Address)
        {
            User user;
             connections.Add(Context.ConnectionId);
             var ot=new openTok (Remote_Address);
             user = new User(username,Context.ConnectionId, ot);

            Users.TryAdd(Context.ConnectionId, user);
            Clients.Clients(connections.AllExcept(Context.ConnectionId)).getNewOnlineUser(user);
            Clients.Client(Context.ConnectionId).getOnlineUsers(Users);

            return user;
        }