示例#1
0
        public void OnConnect(UserContext context)
        {
            //var json = context.DataFrame.ToString();
            //Connect obj = JsonConvert.DeserializeObject<Connect>(json);

            var me = new WebSocketUser {
                Context = context
            };

            OnlineUsers.TryAdd(me, String.Empty);

            //Response r = new Response() { Type = ResponseType.Connection };
            //context.Send(JsonConvert.SerializeObject(r));
        }
示例#2
0
        public void OnConnect(UserContext context)
        {
            //var json = context.DataFrame.ToString();
            //Connect obj = JsonConvert.DeserializeObject<Connect>(json);

            var me = new WebSocketUser { Context = context };
            OnlineUsers.TryAdd(me, String.Empty);

            //Response r = new Response() { Type = ResponseType.Connection };
            //context.Send(JsonConvert.SerializeObject(r));
        }