CN104519095A - Dynamic message pushing method and system thereof, server-side, and client - Google Patents

Dynamic message pushing method and system thereof, server-side, and client Download PDF

Info

Publication number
CN104519095A
CN104519095A CN201310454040.9A CN201310454040A CN104519095A CN 104519095 A CN104519095 A CN 104519095A CN 201310454040 A CN201310454040 A CN 201310454040A CN 104519095 A CN104519095 A CN 104519095A
Authority
CN
China
Prior art keywords
server
client
push message
communication connection
flash plug
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310454040.9A
Other languages
Chinese (zh)
Other versions
CN104519095B (en
Inventor
夏德鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Singularity Xinyuan International Technology Development Beijing Co ltd
Original Assignee
CHONGQING XINMEI AGRICULTURAL INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHONGQING XINMEI AGRICULTURAL INFORMATION TECHNOLOGY CO LTD filed Critical CHONGQING XINMEI AGRICULTURAL INFORMATION TECHNOLOGY CO LTD
Priority to CN201310454040.9A priority Critical patent/CN104519095B/en
Publication of CN104519095A publication Critical patent/CN104519095A/en
Application granted granted Critical
Publication of CN104519095B publication Critical patent/CN104519095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/4061Push-to services, e.g. push-to-talk or push-to-video

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a dynamic message pushing method and a system thereof, a client, and a server-side. The dynamic message pushing method comprises steps: establishing communication connection through a flash plug-in and a server-side; receiving a Push message sent by the server-side through the flash plug-in, the Push message being generated by the lasted word stored by the server-side; and resolving the Push message and controlling page display. The flash is used for the function of socket, and the method establishes real-time connection between the client and the server-side, preventing a problem of port configuration. The client does not need to install any additional plug-in, so as to provide convenience for users to use to the largest extent. During a leisure period, the connection is just a quiet heartbeat connection, and does not waste bandwidth. In addition, through encrypting Push messages, a self-encryption tool of an application program is not needed, so the application program is simplified.

Description

Dynamic message pushing method and system, server and client thereof
Technical Field
The present invention relates to the field of network communications, and in particular, to a dynamic message pushing method, a system, a server, and a client thereof.
Background
In a traditional client/browser mode, a client requests services or information from a server, which responds by transmitting the information to the client. This technique is known as "Pull": the client "pulls" information from the server. A browser Web page is a typical example of a pull technology, and a user inputs a URL address to a server as a request, and the server responds by sending a Web page to a client. In contrast, there is also a "Push" technique, called "Push", which is also based on a client/server model, but without an explicit request from the client before the server sends a message to the client. That is, the "pull" messaging is always initiated by the client, while the "push" is initiated by the server.
At present, the commonly adopted method for updating the message from the server mainly includes the following steps:
first, short polling, also called high frequency polling. This means that the client contacts the server at fixed (or configurable) time intervals to find out whether a new update is available.
Second, long polling. This is also a way of establishing a connection by the client, but blocking the connection by the server, which will send data over the blocked connection when data is available, and then close the connection. After the client receives the data, the connection is reestablished, and the server repeats the process.
And thirdly, carrying out a flow channel. This approach is much the same as the second long poll, except that the server does not close the response flow, but rather deliberately keeps it open, allowing the browser to think that more data is coming.
And fourthly, signal. Signal is a html websocket framework supported by Microsoft and running on a Dot NET platform, and the main purpose of the Signal is to realize that a server actively pushes (Push) messages to a client page, so that the client does not need to resend requests or use a polling technology to acquire the messages.
These four approaches, while applied, lack scalability. Typically, to block a request, you need to block the thread that handles the request, since almost all application servers today perform blocking I/O. Even if not, JavaTM2Platform, Enterprise Edition (J2EE) also does not provide a standard for performing non-blocking I/O for HTTP requests and responses. Therefore, it is desirable to have a non-blocking I/O (NIO) server through which client applications are linked. Since such sockets are pure TCP binary sockets, the following objectives will be achieved:
higher scalability is possible because the server has NIO.
The problem of response caching no longer exists because this socket is directly under the control of the application.
Although the above method satisfies scalability and solves the problem of caching, in general, a server socket will run on a port other than port 80, but if a firewall of a client only allows traffic from port 80, port configuration is necessary, which makes the use inconvenient. On the other hand, since the above method uses a binary TCP socket, so that the application cannot really utilize the SSL security provided by the HTTPS layer, the application requiring data security may need to provide its own encryption tool to encrypt data, thereby increasing data traffic and complicating the data processing process.
Disclosure of Invention
In view of the above, the present invention provides a dynamic message pushing method and system, a client and a server, which utilize flash as a socket function to establish a real-time connection between the client and the server, thereby avoiding the problem of port configuration, and also avoiding the need of installing any additional plug-in at the client to make the client maximally convenient for the user to use; and during leisure, the link is only a silent heartbeat link, and bandwidth is not wasted.
The invention solves the technical problems by the following technical means:
the invention provides a dynamic information pushing method, which comprises the following steps:
establishing communication connection with a server through a flash plug-in;
receiving a Push message sent by a server through the flash plug-in; the Push message is generated by the server according to the stored latest data information;
analyzing the Push message and controlling the page display; wherein,
the step of establishing communication connection with the server through the flash plug-in specifically comprises the following steps:
a client page is preloaded with a flash plug-in;
automatically sending a communication connection request to a server by a flash plug-in;
and receiving a connection request response returned by the server by the flash plug-in, and establishing communication connection, wherein the connection request response comprises a socket policy file and a channel identifier.
Wherein, the Push message is generated by the server and is encrypted, and before the step of analyzing the Push message and controlling the page display, the method further comprises the following steps: and the Flash plug-in calls a js method to decrypt the encrypted Push message.
The invention also provides a dynamic message pushing method, which is characterized by comprising the following steps:
establishing communication connection with a client through a flash plug-in of the client;
generating a Push message according to the stored latest data information;
sending the Push message to the client through the communication connection established with the client; the step of generating a Push message according to the stored latest data information specifically includes the steps of:
receiving new data information sent by a client or a third party, and updating the stored data information to obtain the latest data information;
inquiring the change state of the stored data information in real time;
acquiring the stored latest data information and the corresponding channel identification thereof according to the query result;
and generating a Push message according to the acquired latest data information.
Further, after the step of generating the Push message according to the stored latest data information, the method further includes the steps of: and encrypting the generated Push message.
Correspondingly, the invention also provides a client, which comprises:
the first communication module is used for pre-loading a flash plug-in, establishing communication connection with the server through the flash plug-in and receiving a Push message sent by the server through the flash plug-in; the Push message is generated by the server according to the latest stored data information;
and the control module is used for analyzing the Push message received by the first communication module and controlling the page display.
Further, the Push message is generated by the server and encrypted, and the control module is further configured to control the flash plugin to call a js method to decrypt the encrypted Push message before analyzing the Push message.
Correspondingly, the invention also provides a server, which comprises:
the database server is used for storing data information;
the push server, link to each other with this database server, this push server includes:
the second communication module is used for establishing communication connection with the client through a flash plug-in of the client;
the message pushing module is used for generating a Push message according to the latest data information stored by the database server and sending the Push message to the client through the established communication connection with the client; wherein the second communication module comprises:
the request receiving submodule is used for receiving a communication connection request automatically sent by a client through a flash plug-in;
and the request response submodule generates a connection request response according to the communication connection request, wherein the connection request response comprises a socket strategy file and a channel identifier.
Wherein, the message pushing module specifically comprises:
the query submodule is used for querying the updating state of the data in the database server in real time;
the acquisition submodule is used for acquiring the latest data information in the database server and the stored corresponding channel identification according to the query result;
the message generation submodule is used for generating a Push message according to the data information acquired by the data acquisition submodule and sending the generated Push message to the client through the second communication module according to the acquired corresponding channel identifier; and/or
And the encryption submodule is used for encrypting the Push message before the message generation submodule sends the generated Push message to the client.
Correspondingly, the invention also provides a dynamic message pushing system, which comprises the client and the server, wherein,
the client automatically establishes communication connection with the server through a pre-loaded Flash plug-in, receives an encrypted Push message sent by the server through the communication connection, analyzes the Push message and controls page display;
the server establishes communication connection with the client through a flash plug-in of the client, and sends Push messages to the client through the communication connection.
The beneficial effects of the implementation of the invention are as follows:
the communication connection is automatically established with the server side through the flash plug-in of the client side, and the push message sent by the server side is received by the flash plug-in, namely, the real-time connection between the client side and the server side is established by utilizing the function of flash as socket, so that the problem of port configuration is avoided, and the client side is not required to be provided with any additional plug-in, so that the use of a user is facilitated to the maximum extent; and during leisure, the link is only a silent heartbeat link, and bandwidth is not wasted. In addition, by encrypting the Push message, the application program is prevented from providing an own encryption tool, so that the application program is simplified.
Drawings
FIG. 1 is a flowchart of a dynamic message pushing method according to a first embodiment of the present invention;
fig. 2 is a flowchart of an embodiment of step S201 in a dynamic message pushing method according to the present invention;
FIG. 3 is a flowchart of a second embodiment of a dynamic message pushing method according to the present invention;
FIG. 4 is a flowchart of a third embodiment of a dynamic message pushing method according to the present invention;
FIG. 5 is a flowchart of an embodiment of step S301 of a dynamic message pushing method according to the present invention;
FIG. 6 is a flowchart illustrating a dynamic message pushing method according to an embodiment of the present invention;
FIG. 7 is a functional block diagram of an embodiment of a client of the present invention;
fig. 8 is a functional block diagram of a server according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
Example one
Referring to fig. 1, which is a flowchart of an embodiment of a dynamic message pushing method according to the present invention, in a specific implementation, the dynamic message pushing method specifically includes the following steps:
s201, establishing communication connection with a server through a flash plug-in. In this embodiment, when a user opens a certain website through a client, needs to pre-load a flash plug-in, and then establishes a network communication link with a server through the flash plug-in, in a specific implementation, referring to fig. 2, step S201 specifically includes the steps of:
and S2011, loading a flash plug-in the client page in advance.
S2013, the flash plug-in automatically sends a communication connection request to the server side. In this embodiment, the flash plug-in automatically sends a socket connection request to the server, and the socket connection request includes an ID uniquely identifying the client, so as to request the server to return a socket policy file, etc., thereby facilitating establishment of communication connection between the client and the server according to the information such as the socket policy file, etc.
S2015, the flash plug-in receives a connection request response returned by the server according to the communication connection request, and establishes communication connection. In this embodiment, the connection request response includes a socket policy file and a channel identifier. In specific implementation, after receiving a communication connection request of a client, a server generates a corresponding connection request response and returns the response to the client, and the response is received by the flash plug-in of the client, so that socket connection is established with the server according to a socket policy and a channel identifier (the channel identifier is uniquely corresponding to an ID identifier in the communication connection request sent by the client) in the connection request response, and thus, communication connection between the client and the server is established, so that Push messages and the like sent by the server can be subsequently received.
S203, the Push message sent by the server is received through the flash plug-in. In this embodiment, the Push message is generated by the server according to the stored latest data information, and the generated Push message is actively sent through the communication link established in step S201. In specific implementation, when the client or a third party performs any operation on the data information stored in the server, corresponding new data information is generated and returned to the server, and the server updates the stored data information according to the new data information, generates a Push message according to the latest data information and actively sends the Push message to the client.
And S205, analyzing the Push message and controlling the page display. In specific implementation, after a flash plug-in of a client receives a Push message, a page scripting language (js) in a client page converts the Push message into an html tag language and displays the html tag language in a webpage.
The dynamic message pushing method of the embodiment automatically establishes communication connection with the server through the flash plug-in of the client, receives the push message sent by the server through the flash plug-in, namely establishes real-time connection between the client and the server by using the function of the flash as a socket, avoids the problem of port configuration, and is not required to install any additional plug-in at the client so as to be convenient for a user to use to the maximum extent; and during leisure, the link is only a silent heartbeat link, and bandwidth is not wasted.
Example two
Further, in order to ensure data security, a Push message sent automatically by the server needs to be encrypted, and after the client flash plugin receives the encrypted Push message sent by the server, the client flash plugin needs to decrypt the encrypted Push message to obtain message content. Therefore, referring to fig. 3, in addition to steps S201 to S205 of the first embodiment, after receiving the Push message sent by the server, that is, after executing step S203 and before executing step S205, the dynamic message pushing method in this embodiment further includes the steps of:
s207, the encrypted Push message sent by the server side is decrypted. In specific implementation, the flash plugin of the client calls a js method to decrypt the encrypted Push message.
EXAMPLE III
Referring to fig. 4, which is a flowchart of another embodiment of a dynamic message pushing method according to the present invention, in a specific implementation, the dynamic message pushing method of this embodiment specifically includes the steps of:
s301, establishing communication connection with the client through the flash plug-in of the client. In this embodiment, a flash plugin is preloaded by a client page, and a communication connection request is automatically initiated by the flash plugin. In specific implementation, referring to fig. 5, the step S301 specifically includes the steps of:
s3011, receiving a communication connection request automatically sent by a flash plug-in of the client. In this embodiment, the flash plug-in of the client automatically sends the communication connection request to request the server to return the socket policy and the channel identifier, so as to establish communication connection between the client and the server, thereby facilitating subsequent sending and receiving of Push messages, and the like.
And S3013, according to the communication connection request, returning a connection request response to the flash plug-in of the client so as to respond to the client and establish communication connection, wherein the connection request response comprises a socket policy file and a channel identifier. In specific implementation, the server responds to a socket connection request of the client to establish connection, and because the socket connection request comprises an ID (identity) uniquely identifying the client, after receiving the socket connection request sent by the client, the server returns a corresponding connection request response to the flash plug-in according to the socket connection request, wherein the connection request response comprises the generated socket policy file and a channel identity uniquely corresponding to the ID.
S303, generating a Push message according to the stored latest data information. The steps in this embodiment specifically include the steps of:
receiving new data information sent by a client page or a third party and updating the stored data information, wherein in specific implementation, when the client or the third party operates the data information stored in the server, the corresponding new data information is generated and returned to the server, and the server updates the stored data information according to the new data information to obtain the latest data information; in this embodiment, the server not only can store the data information, but also can store the corresponding change state, that is, when the data information is updated, the change state changes correspondingly, so that whether the corresponding data information is updated or changed or not can be obtained only according to the change state; acquiring the stored latest data information and the corresponding channel identification according to the query result; and generating a Push message according to the acquired latest data information.
In a specific embodiment, when the client or the third party performs a corresponding operation on the data information stored in the server, new data information is generated, which includes data content and an ID that uniquely identifies the client or the third party that sends the data. And after the new data information is generated, returning the new data information to the server, updating by the server according to the new data information to obtain the latest data information, finding the corresponding channel identifier according to the ID identifier after updating, and sending the latest data information to the client correspondingly.
S305, sending the Push message to the client through the communication link established in step S301.
The dynamic message pushing method of the embodiment automatically establishes communication connection with a server through a flash plug-in of a client, provides query of instant messages and management of a socket image object by the server, has a message pushing function, pushes messages to the client, and receives the messages through the flash plug-in of the client, namely establishes real-time connection between the client and the server by using the function of using flash as socket, avoids the problem of port configuration, and is free from installing any additional plug-in at the client so as to be convenient for a user to use to the maximum extent; and during leisure, the link is only a silent heartbeat link, and bandwidth is not wasted.
Example four
Further, in order to ensure the security of data, a Push message sent automatically by the server needs to be encrypted, and after the client flash plugin receives the encrypted Push message sent by the server, the client flash plugin needs to decrypt the encrypted Push message to obtain the message content. Therefore, in addition to steps S301 to S305 of the first embodiment, the dynamic message pushing method of the present embodiment encrypts the Push message when generating the Push message, that is, before executing step S305, the Push message generated in step S303 needs to be encrypted.
EXAMPLE five
The dynamic message pushing method of the present invention will be described in detail below with reference to specific embodiments and accompanying drawings.
Referring to fig. 6, a flowchart of an embodiment of dynamic message pushing according to the present invention is shown. The method in this embodiment specifically includes the steps of:
s601, the user opens a website at the client.
S602, the website server responds to the request of the client to display the webpage and load the data.
S603, loading the flash plug-in on the webpage of the client.
S604, the client flash plugin automatically sends a socket connection request to a push server of the server so as to request the push server of the server to return the policy file and the channel identifier.
S605, the push server at the server receives the socket connection request, and returns a connection request response to establish communication connection, where the connection request response includes the generated socket policy file and the channel identifier.
And S606, simultaneously, storing the socket policy file and the channel identifier in the connection request response into a database server of the server.
S607, the user puts the commodity into the shopping cart.
S608, calling ajax by the client webpage to transmit the commodity information to the database server of the server, and storing and updating.
S609, the push server of the server side inquires the change state of the data in the database server in real time;
s610, the push server obtains the updated data information in the database server and the corresponding channel identification.
S611, the Push server performs logic processing according to a certain service rule, and generates and encrypts the updated data information into a Push message.
S612, the push server finds out the corresponding connection write-in message flow according to the acquired channel identification to send to the client flash plug-in.
S613, the Flash plug-in of the client receives the Push message sent by the server, calls a js (page scripting language) method in the foreground user webpage to decrypt the Push message, and returns the result to the front-end webpage.
S613, the Push message is analyzed by the script language (js) in the webpage of the client, namely the decrypted Push message is converted into the corresponding html tag language to be displayed in the webpage.
EXAMPLE six
Referring to fig. 7, the functional modules of an embodiment of the client according to the present invention are specifically implemented, in this embodiment, the client includes:
the first communication module 61 is used for preloading a flash plug-in, establishing communication connection with a server through the flash plug-in, and receiving a Push message sent by the server through the flash plug-in; the Push message is generated by the server according to the stored latest data information;
the first communication module 61 may specifically include:
the loading submodule is used for pre-loading a flash plug-in on a client page;
and the receiving and sending submodule is used for sending a communication connection request automatically sent to the server side by the flash plug-in and receiving a connection request response returned to the flash plug-in by the server side so as to enable the flash plug-in to establish communication connection with the server side, and the connection request response comprises a socket strategy file and a channel identifier.
And the control module 62 is connected to the first communication module 61, and is configured to parse the Push message received by the first communication module and control page display.
In another embodiment, in order to ensure the security of data, the Push message sent by the server is encrypted, and therefore, the control module 62 is further configured to control the flash plugin to call a js method to decrypt the encrypted Push message before parsing the Push message.
EXAMPLE seven
Referring to fig. 8, a functional block diagram of an embodiment of a server according to the present invention is shown, and in implementation, the server in this embodiment specifically includes:
a database server 71 for storing data information; in particular, the data service weapon 71 includes a storage module for storing data information and its update status; the updating module is connected with the storage module and used for receiving the data information sent by the client or the third party and updating the data information stored by the storage module according to the data information sent by the client and the third party;
and the Push server 72 is connected with the database server 71 and used for establishing communication connection with the flash plug-in of the client, generating a Push message according to the latest data stored by the database server and sending the generated Push message to the client through the established communication connection.
Referring to fig. 8, in this embodiment, the push server 72 specifically includes:
the second communication module 721 is used for establishing communication connection with a flash plug-in of the client; in specific implementation, the second communication module 721 specifically includes: the request receiving submodule is used for receiving a communication connection request automatically sent by a flash plug-in of a client; a response submodule, configured to return a connection request response to a flash plugin of a client according to a communication connection request received by the request receiving submodule to establish communication connection, where the connection request response includes a socket policy file and a channel identifier, and the response submodule also stores the socket policy file and the channel identifier in a communication connection request response in the database server 71;
the message pushing module 722 is configured to generate a Push message according to the latest data information in the database server, and send the generated Push message to the client through the second communication module 721. In a specific implementation, the message pushing module 722 includes: a query submodule for querying a change state of the data information in the database server 71 in real time; the acquisition sub-module is connected with the query sub-module and is used for acquiring the latest data information and the corresponding channel identification thereof according to the query result; the message generation submodule is connected with the acquisition submodule and used for generating a Push message according to the acquired latest data information; and the Push sub-module is configured to send the generated Push message to the client through the communication link established by the second communication module 721.
In another specific embodiment, in order to ensure the security of the message, in addition to the functional modules of the server in the foregoing embodiments, the message pushing module 722 of the server may further include an encryption sub-module, connected to the message generating sub-module, for encrypting the Push message generated by the message generating sub-module.
Example eight
Correspondingly, the present invention further provides a dynamic message pushing system, which, when implemented specifically, includes the client terminal in the above embodiment and the server terminal in the seventh embodiment, wherein,
the client automatically establishes communication connection with the server through a pre-loaded Flash plug-in, receives a Push message sent by the server through the communication connection, analyzes the Push message and controls page display;
the server establishes communication connection with the client through a flash plug-in of the client, and sends Push messages to the client through the communication connection.
In another embodiment, in order to ensure data security, the server side encrypts the Push message after generating the Push message, and accordingly, after receiving the encrypted Push message sent by the server side, the client side needs to decrypt the Push message before analyzing the Push message.
Finally, the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all of them should be covered in the claims of the present invention.

Claims (10)

1. A dynamic information pushing method is characterized by comprising the following steps:
establishing communication connection with a server through a flash plug-in;
receiving a Push message sent by a server through the flash plug-in; the Push message is generated by the server according to the stored latest data information;
analyzing the Push message and controlling the page display; wherein,
the step of establishing communication connection with the server through the flash plug-in specifically comprises the following steps:
a client page is preloaded with a flash plug-in;
automatically sending a communication connection request to a server by a flash plug-in;
and receiving a connection request response returned by the server by the flash plug-in, and establishing communication connection, wherein the connection request response comprises a socket policy file and a channel identifier.
2. The dynamic message pushing method according to claim 1, wherein the Push message is generated by a server and encrypted, and before the step of parsing the Push message and controlling the page display, the method further comprises the steps of:
and the Flash plug-in calls a js method to decrypt the encrypted Push message.
3. A dynamic message pushing method, comprising the steps of:
establishing communication connection with a client through a flash plug-in of the client;
generating a Push message according to the stored latest data information;
sending the Push message to the client through the communication connection established with the client; wherein,
the step of establishing communication connection with the client through the flash plug-in of the client specifically comprises the following steps:
receiving a communication connection request automatically sent by a flash plug-in of a client;
and returning a connection request response to the flash plug-in of the client to establish communication connection according to the communication connection request, wherein the connection request response comprises a socket policy file and a channel identifier.
4. The dynamic message pushing method according to claim 3, wherein the step of generating the Push message according to the latest stored data information specifically comprises the steps of:
receiving new data information sent by a client or a third party, and updating the stored data information to obtain the latest data information;
inquiring the change state of the stored data information in real time;
acquiring the stored latest data information and the corresponding channel identification thereof according to the query result;
and generating a Push message according to the acquired latest data information.
5. The dynamic message pushing method according to claim 3 or 4, wherein after the step of generating the Push message according to the stored latest data information, further comprising the steps of:
and encrypting the generated Push message.
6. A client, comprising:
the first communication module is used for pre-loading a flash plug-in, establishing communication connection with the server through the flash plug-in and receiving a Push message sent by the server through the flash plug-in; the Push message is generated by the server according to the latest stored data information;
the control module is used for analyzing the Push message received by the first communication module and controlling the page display;
the first communication module specifically includes:
the loading submodule is used for pre-loading the flash plug-in on the client page;
and the receiving and sending submodule is used for sending a communication connection request automatically sent to the server by the flash plug-in and receiving a connection request response returned to the flash plug-in by the server so as to enable the flash plug-in to establish communication connection with the server, and the connection request response comprises a socket policy file and a channel identifier.
7. The client of claim 8, wherein the Push message is generated by the server and encrypted, and the control module is further configured to control the flash plugin to call a js method to decrypt the encrypted Push message before parsing the Push message.
8. A server, comprising:
the database server is used for storing data information;
the push server, link to each other with this database server, this push server includes:
the second communication module is used for establishing communication connection with the client through a flash plug-in of the client;
the message pushing module is used for generating a Push message according to the latest data information stored by the database server and sending the Push message to the client through the established communication connection with the client; wherein,
the second communication module includes:
the request receiving submodule is used for receiving a communication connection request automatically sent by a client through a flash plug-in;
and the request response submodule generates a connection request response according to the communication connection request, wherein the connection request response comprises a socket strategy file and a channel identifier.
9. The server according to claim 8, wherein the message pushing module specifically includes:
the query submodule is used for querying the updating state of the data in the database server in real time;
the acquisition submodule is used for acquiring the latest data information in the database server and the stored corresponding channel identification according to the query result;
the message generation submodule is used for generating a Push message according to the data information acquired by the data acquisition submodule and sending the generated Push message to the client through the second communication module according to the acquired corresponding channel identifier; and/or
And the encryption submodule is used for encrypting the Push message before the message generation submodule sends the generated Push message to the client.
10. A dynamic message push system, comprising a client as claimed in claim 7 and a server as claimed in claim 8 or 9, wherein,
the client automatically establishes communication connection with the server through a pre-loaded Flash plug-in, receives an encrypted Push message sent by the server through the communication connection, analyzes the Push message and controls page display;
the server establishes communication connection with the client through a flash plug-in of the client, and sends Push messages to the client through the communication connection.
CN201310454040.9A 2013-09-29 2013-09-29 A kind of dynamic message method for pushing and its system, server-side, client Active CN104519095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310454040.9A CN104519095B (en) 2013-09-29 2013-09-29 A kind of dynamic message method for pushing and its system, server-side, client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310454040.9A CN104519095B (en) 2013-09-29 2013-09-29 A kind of dynamic message method for pushing and its system, server-side, client

Publications (2)

Publication Number Publication Date
CN104519095A true CN104519095A (en) 2015-04-15
CN104519095B CN104519095B (en) 2019-01-25

Family

ID=52793813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310454040.9A Active CN104519095B (en) 2013-09-29 2013-09-29 A kind of dynamic message method for pushing and its system, server-side, client

Country Status (1)

Country Link
CN (1) CN104519095B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071976A (en) * 2015-09-08 2015-11-18 安一恒通(北京)科技有限公司 Data transmission method and device
CN105610628A (en) * 2016-01-20 2016-05-25 北京智驾互联信息服务有限公司 Computer system, service terminal and client terminal
WO2017167020A1 (en) * 2016-03-28 2017-10-05 阿里巴巴集团控股有限公司 Configuration information push method and device
CN107707966A (en) * 2016-08-08 2018-02-16 大唐软件技术股份有限公司 A kind of playing method and device of multi-medium data
CN108667914A (en) * 2018-04-24 2018-10-16 梅泰诺(北京)物联科技有限公司 A kind of information-pushing method, device, system and electronic equipment
CN109474418A (en) * 2019-01-22 2019-03-15 网易(杭州)网络有限公司 File enciphering method, document decryption method, device, medium and calculating equipment
CN110213302A (en) * 2019-07-11 2019-09-06 创新奇智(北京)科技有限公司 A kind of method, computer-readable medium and system pushing welcome's message
CN112463251A (en) * 2020-12-03 2021-03-09 中国建设银行股份有限公司 Method and device for configuring hot publishing by uliweb framework

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694660A (en) * 2009-06-01 2010-04-14 高维海 Instantaneous website system and method for combining website with instantaneous communication platform
CN101944130A (en) * 2010-09-28 2011-01-12 苏州阔地网络科技有限公司 Method for implementing list synchronization on webpage
CN102236709A (en) * 2011-07-01 2011-11-09 深圳中兴力维技术有限公司 Flex-based monitoring page display method and system
CN202111741U (en) * 2011-01-31 2012-01-11 北京开心人信息技术有限公司 System for displaying downloading progress of FLASH on webpage in real-time manner
CN102377793A (en) * 2010-08-11 2012-03-14 优视科技有限公司 Flash interaction method and device based on mobile communication equipment terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694660A (en) * 2009-06-01 2010-04-14 高维海 Instantaneous website system and method for combining website with instantaneous communication platform
CN102377793A (en) * 2010-08-11 2012-03-14 优视科技有限公司 Flash interaction method and device based on mobile communication equipment terminal
CN101944130A (en) * 2010-09-28 2011-01-12 苏州阔地网络科技有限公司 Method for implementing list synchronization on webpage
CN202111741U (en) * 2011-01-31 2012-01-11 北京开心人信息技术有限公司 System for displaying downloading progress of FLASH on webpage in real-time manner
CN102236709A (en) * 2011-07-01 2011-11-09 深圳中兴力维技术有限公司 Flex-based monitoring page display method and system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071976A (en) * 2015-09-08 2015-11-18 安一恒通(北京)科技有限公司 Data transmission method and device
CN105071976B (en) * 2015-09-08 2019-05-03 安一恒通(北京)科技有限公司 Data transmission method and device
CN105610628A (en) * 2016-01-20 2016-05-25 北京智驾互联信息服务有限公司 Computer system, service terminal and client terminal
CN105610628B (en) * 2016-01-20 2019-05-03 北京智驾互联信息服务有限公司 Computer system
WO2017167020A1 (en) * 2016-03-28 2017-10-05 阿里巴巴集团控股有限公司 Configuration information push method and device
CN107241204A (en) * 2016-03-28 2017-10-10 阿里巴巴集团控股有限公司 Configuration information method for pushing and device
CN107707966A (en) * 2016-08-08 2018-02-16 大唐软件技术股份有限公司 A kind of playing method and device of multi-medium data
CN107707966B (en) * 2016-08-08 2021-01-22 大唐软件技术股份有限公司 Multimedia data playing method and device
CN108667914A (en) * 2018-04-24 2018-10-16 梅泰诺(北京)物联科技有限公司 A kind of information-pushing method, device, system and electronic equipment
CN109474418A (en) * 2019-01-22 2019-03-15 网易(杭州)网络有限公司 File enciphering method, document decryption method, device, medium and calculating equipment
CN110213302A (en) * 2019-07-11 2019-09-06 创新奇智(北京)科技有限公司 A kind of method, computer-readable medium and system pushing welcome's message
CN112463251A (en) * 2020-12-03 2021-03-09 中国建设银行股份有限公司 Method and device for configuring hot publishing by uliweb framework

Also Published As

Publication number Publication date
CN104519095B (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN104519095B (en) A kind of dynamic message method for pushing and its system, server-side, client
US8938502B2 (en) Subscriber device and subscription management that supports real-time communication
US8737579B2 (en) Methods of routing messages using a listener registry
US20090157831A1 (en) Method, apparatus and system for processing emails through data synchronization
US20120254407A1 (en) System and method to monitor and transfer hyperlink presence
EP2538634A1 (en) Method for realizing peer-to-peer (p2p) communication on webpage
CN103535004B (en) Method for promoting anonymity audio and video communication and system based on web
US10057307B2 (en) Distributed programmable connection method to establish peer-to-peer multimedia interactions
US11044243B2 (en) Push notification for application updates
CN103001926A (en) Method, device and system for subscription notification
CN105049252A (en) Method and device for managing configuration information
CN113556359B (en) Communication protocol conversion method, device, system and gateway device
US20120036208A1 (en) Polling-based secure network message notification system and method with performance enhancing features
JP2020526991A (en) Techniques for multi-agent messaging
US20060236367A1 (en) Method for providing wireless application privilege management
US20170244660A1 (en) Taking Actions On Notifications Using An Incomplete Data Set From A Message
JP2015149082A (en) System, method and computer program for public bot management in private networks (public bot management in private networks)
FI128537B (en) Solution for establishing a communication session
EP2974159B1 (en) Method, device and system for voice communication
CN114979295B (en) Gateway management method and device
US8861503B2 (en) Method and system for synchronizing data between mobile terminal and internet phone
US9942177B1 (en) Method and system for real-time data updates
CN111787048B (en) Connection method of terminal equipment, scheduling server and Internet of things system
CN112613933A (en) Invoice data processing method and device, storage medium and electronic equipment
US20170171293A1 (en) Compact content delivery via a restricted-bandwidth communication channel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200605

Address after: Room 502-1, floor 5, building 2, courtyard 10, KEGU 1st Street, economic development zone, Daxing District, Beijing 100081

Patentee after: Singularity Xinyuan International Technology Development (Beijing) Co.,Ltd.

Address before: The 400060 northern New District of Chongqing municipality Mount Huangshan Road 5 south of Mercury Technology Building 1 floor office No. 3

Patentee before: A-MEDIA COMMUNICATION TECH Co.,Ltd.