I have a web application, where users will see notifications for their new messages, I want to push the notifications to the users who are already logged in.
I have seen that I can do it using Server Push of PokeIn, I have tried and understood the simple application using it, but I am not getting the ClientID thing.
The ClientId it saves in "OnClientConnected" is a simple integer, so how does it recognizes clients and calls functions on them ?
Also, it is written that it uses a hybrid long polling approach, can somebody please explain me what is this?
I will not be able to implement without having sufficient knowledge of it.
Does saving the ClientID in the database for logged in user and then pushing data using this will do ?
UPDATE:
Even from requests within the same browser window or tab, the ClientId received every time on every request is different, so I had to include the Handler in my master page and on every request, I had to map the ClientId received to the Logged In user, so that I can send messages to him.
Can't I just map the (ClientId to LoggedIn UserId) only once on LogIn and then use that same ClientId to send him messages ?