I have implemented push messages to channels which works
fine. Now I try to send messages to SPECIFIC users if they are connected
or as soon as they connect.
I have a few troubles with that:
- What do I need to register on the client side? For channels I did
PushMessageClient = new
and then I registered a named receiver.
- In the docs I saw there are three methods to send to a specific user (NotifyUserId, NotifyUserName, NotifySession). But what do I need to register on the client instead of a named receiver with channels?
- On the server I also have a little problem: The service sends a Message to RabbitMQ and it embeds the username to the message. Some time later there will be a processing confirmation or an error coming back. I like to send this message to the UI using server side events. But in the service the UserName and UserAuthId properties are NULL. The username seems to be stored in the UserAuthName property of my session object. So how can I send a message to a specific user?
- Is it correct that I need Redis to make those messages persistent? I currently use the memory based events but they wont survive a reboot of the server…