I would like to inform the clients (Xamarin.Forms iOS/Android) when their session has expired.
- How can I best do this both on the server side and on the client side?
- I would also like to inform all clients when a new client logs in / out. I would be very grateful for an example. I looked at the chat example and could only send / receive messages with it, however, if they were initiated by the client. How do I do this in my login / logout service and in my Program.cs (e.g. private static void SessionManager_SessionExpired (object sender, SessionEventArgs e))?
- Am I correct that an active session must exist in order to receive messages from the server? I would like to use this as a replacement for push notifications. Or is there a better solution?
My (Code First) DA Server runs on a Rasperry Pi
Thanks in advance for your help.