A method, system, device and storage medium for sending messages and updating data
By adopting publish subscription mode and request communication methods of websocket or https polling in web communication technology, the delay problem caused by multitasking and multiple requests is solved, and fixed-point reception of messages is realized, improving user experience and code maintainability.
Patent Information
- Application Number
- CN202211528976.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2042-11-30
AI Technical Summary
The prior art has delays in processing multitasking and multiple requests, resulting in too long page waiting time and the sending of messages in the global state manager cannot be received at a fixed location.
The message/event is encapsulated using the publish subscription mode, and the request communication method is polled by websocket or https. Different events are processed when receiving messages, and corresponding event tasks are issued to each page to realize the channel for receiving ajax messages.
It solves the problem that the page wait time caused by the delay in requesting data, and realizes fixed-point reception of messages, avoids the limitations of the global state manager, and improves the simplicity and maintainability of the code.