Hi,
We have two different UWP apps used in our project. From one App to the other we need to send some notification for a particular event. The 2 apps will always be running in 2 devices. App1 will be used by certain set of users in some devices and App 2 will be used by another set of users in another set of devices. When a user of App1 does some action we need to notify the App2.
We can assume always both the Apps will be running when that happens.
For e.g. In a classroom the teacher is using App 1 and the students are using the App2, during the class when all of them are using the App, teacher will send some notification to the student apps, so they need to get notified.
We are planning to use StreamSocket for the above task. So we'll create a Server (which listens for a connection) and a Client (which connects to the server).
When we create a socket connection like that, can we send messages from the server to client and client to server both ways? or only from the server to client?
If we create a connection like that, will it get timed out after a certain time? Does the Stream socket connection time out automatically or will last until we close it?
If it doesn't time out and if we keep it running continuously, can that affect the battery life of tablets badly?
Thanks,
Madhu