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)); }