CodePudding user response:
Solutions fall into two categories:1, the client polling, the service side is simple, the client is a bit complicated, have a big delay and invalid network traffic
2, the service side notice, the service side is complex, the client is simple, small delay, no invalid network traffic
A simple scenario recommended scheme 1,
CodePudding user response:
Theory of functional training in rotation alone can be solved if the scenario would not choose training in rotation is applied to implement than more invalid requestIf the scenario is bigger can build socket service to implement the notification but relatively server-side development more consideration is needed is more complex
CodePudding user response:
Simple client polling, the server, the client is a bit tedious, big delay, an invalid network traffic