private ClientState GetClientState(HttpContext context)
        {
            var messangerState = GetCookieValue(context, mesStateConst);// New client state

            ClientState clientState = null;
            if (String.IsNullOrEmpty(messangerState))
                clientState = new ClientState();

            else
                clientState = JsonConvert.DeserializeObject<ClientState>(messangerState);

            return clientState;
        }
        private void OnUserInitialize(ClientState clientState, MessangerUser user)
        {
            // Update the active room on the client (only if it's still a valid room)
            if (user.Groups.Any(room => room.Name.Equals(clientState.ActiveGroup, StringComparison.OrdinalIgnoreCase)))
                // Update the active room on the client (only if it's still a valid room)
                Clients.Caller.activeRoom = clientState.ActiveGroup;

            (this as INotificationService).LogOn(user, Context.ConnectionId);
        }