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.

CN115913874BActive Publication Date: 2025-04-29GUANGDONG ESHORE TECH
2 Cites 0 Cited by

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

Technical Problem

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.

Method used

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.

Benefits of technology

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.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention discloses a method for sending messages and updating data, which belongs to the field of web communication technology, and solves the technical problem that the page waiting time is too long and the message sent in the global state manager cannot be received at a fixed point. The method is: using a publish-subscribe mode to encapsulate messages / events, through a websocket or https polling request communication method, different events are processed when receiving messages, and corresponding event tasks are sent to each page, and a channel for receiving ajax messages is implemented on the page. The present invention also discloses a system, device and storage medium for sending messages and updating data. The present invention solves the user experience of a user who has to wait too long when the request has no return for a long time, and uses a delay and queue generation method to enable long requests to run in the background, and update the view in time when there is a return.
Need to check novelty before this filing date? Find Prior Art