When you run the server from the messenger client.

Asked 2 years ago, Updated 2 years ago, 18 views

Hi, everyone. When implementing messenger push. I didn't use Google push, but I used my own push. When implementing push, the client end has to be a kind of server. For TCP socket, you can turn the thread separately and open the server socket. I made it with HTTP, and the client (cell phone) team couldn't be a server. Do you have anything to push mine by communicating with the server once every 20 or 18 seconds? I used to make a request like that before. I don't think something's right. What do you think, masters?

And if you want to push, you need to be aware of each client Does that keep the authorized address of each client group updated on the server? Thank you.

android

2022-09-22 10:46

1 Answers

You must have a persistent connection to send a push from the server.

Use SSE or Websocket.


2022-09-22 10:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.