Wednesday, 7 June 2017

Send message to a client which isn't connected all the time

is it possible to send a message to a specific client which isn't connected all the time. Like on WhatsApp, I want to choose a specific friend, write him and new chat-room should appear, where both can write.

My problem is, that I think, it isn't a good approach to be connected all the time to Socket when Iam online??? If yes, I would use the disconnect-method only, when I close my App. Is there a methodology, when I write a message to a specific client, so that specfic client would trigger and then connected to socket.

Im not sure as Iam on the design-phase.

Would be glad for any advice, if it is a good approach, to have a connected socket while Im online or not.



via BestPractiseToGo

No comments:

Post a Comment