locked
SignalR Hub User Identification RRS feed

  • Question

  • User507801684 posted

    i am implement SingalR in asp.net project. i have designed signalR hub and  its is timely response  to all users successfully.

    But now, 

    i want , signalR hub send  particular information to particular User please guid me best way,

    This is hub code.

    public override Task OnConnected()
    {
    _timer.Elapsed += new System.Timers.ElapsedEventHandler(OnTimedEvent);
    _timer.Interval = 30000;
    _timer.Enabled = true;

    return base.OnConnected();
    }
    private void OnTimedEvent(object source, System.Timers.ElapsedEventArgs e)
    {
    this.Clients.All.onHitRecorded(UtilClasses.AlertMessages.GetRequistationRequest(15123));
    }
    }

     

    Wednesday, August 26, 2015 3:18 AM

Answers