CN108390950A - A kind of information push method, device and equipment - Google Patents
A kind of information push method, device and equipment Download PDFInfo
- Publication number
- CN108390950A CN108390950A CN201810525379.6A CN201810525379A CN108390950A CN 108390950 A CN108390950 A CN 108390950A CN 201810525379 A CN201810525379 A CN 201810525379A CN 108390950 A CN108390950 A CN 108390950A
- Authority
- CN
- China
- Prior art keywords
- push
- message
- terminal
- information
- wait
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Abstract
The application discloses a kind of information push method, device and equipment, this method:Receive it is any wait for PUSH message, this wait for PUSH message carry targets of messages mark;Then, based on the two-way communication length connection that corresponding terminal is established is identified with targets of messages, it will wait for that PUSH message pushes to terminal;Wherein, the connection of two-way communication length is the connection established based on websocket protocol.It can be seen that, the application, which is grown using message push platform based on the two-way communication that websocket protocol and terminal are established, to be connected, so that server-side can be with active push message to terminal, while improving information push efficiency, the load for also reducing server-side solves the problems, such as inefficient, high load existing for existing message push mode.
Description
Technical field
This application involves internet arenas, and in particular to a kind of information push method, device and equipment.
Background technology
It is well known that message push business is one of core of banking system, in recent years, with mobile Internet skill
The fast development of art, people can utilize the different types of terminals such as mobile phone, tablet computer to carry the client of each bank, realize
With the information exchange at bank service end, such as the functions such as transfer accounts, inquire are realized, also allow for bank service end and disappear to client
Breath push.
Currently, the method that the server-side used in banking carries out message push to client is to pass through HTTP by client
Agreement automatic regular polling server-side solicited message, and when each request, the communication connection between client and server-side is all primary
Property, since http protocol can only realize unidirectional communication, so, it, can only be by client in existing information push method
Request is actively initiated, and server end is unable to active push information, which results in practical applications, server-side needs always
The request that a large amount of clients polls are sent constantly is received, increases the load of server-side, and in these polling requests, greatly
Cause has 90% and is asked to be empty, i.e., since temporarily no message needs the request pushed without doing any response to server-side,
The efficiency that the mode of this message push not only pushes is low, but also for server-side, load is also relatively high, and can not first
Time, this did not fully met the growth requirement of current message push by message active push to client.
Therefore, how more advanced technology is utilized, forms efficient, low-load message and push mode, in order to server-side
Actively it message be pushed into client can have become urgent problem to be solved.
Invention content
To solve the above problems, this application provides a kind of information push method, device and equipment, specific technical solution is such as
Under:
In a first aspect, this application provides a kind of information push method, the method is applied to message and pushes platform, described
Method includes:
Receive it is any wait for PUSH message, it is described to wait for that PUSH message carries targets of messages mark;
Connection is grown based on the two-way communication that corresponding terminal is established is identified with the targets of messages, PUSH message is waited for by described
Push to the terminal;Wherein, the two-way communication length connection is the connection established based on websocket protocol.
In an optional implementation manner, the connection established based on websocket protocol includes the terminal base
Connection is grown in the two-way communication that websocket protocol is initiated.
In an optional implementation manner, described to wait for that PUSH message comes from any client or any server-side.
In an optional implementation manner, the targets of messages mark includes the unique identifying information of the terminal.
In an optional implementation manner, it is described based on the targets of messages identify corresponding terminal establish it is two-way
Communication chief connect, by it is described wait for that PUSH message pushes to the terminal after, further include:
Receive the push result information that the terminal returns, the push result information be it is described wait for PUSH message push at
The information of work(or the information for waiting for PUSH message push failure;
If the push result information is the information for waiting for PUSH message push failure, wait pushing described in push again
Message is to the terminal.
Second aspect, this application provides a kind of message pusher, described device is applied to message and pushes platform, described
Device includes:
First receiving unit, for receive it is any wait for PUSH message, it is described to wait for that PUSH message carries targets of messages mark;
First push unit is connected for being grown based on the two-way communication for identifying corresponding terminal foundation with the targets of messages
It connects, waits for that PUSH message pushes to the terminal by described;Wherein, the two-way communication length connection is to be based on websocket protocol
The connection of foundation.
In an optional implementation manner, the connection established based on websocket protocol includes the terminal base
Connection is grown in the two-way communication that websocket protocol is initiated.
In an optional implementation manner, described to wait for that PUSH message comes from any client or any server-side.
In an optional implementation manner, the targets of messages mark includes the unique identifying information of the terminal.
In an optional implementation manner, described device further includes:
Second receiving unit, the push result information returned for receiving the terminal, the push result information is institute
It states and waits for that PUSH message pushes successful information or the information for waiting for PUSH message push failure;
Second push unit, if being the information for waiting for PUSH message push failure for the push result information,
Wait for PUSH message to the terminal described in push again.
The third aspect, this application provides a kind of message pushing equipment, the equipment includes memory and processor,
Said program code is transferred to the processor by the memory for storing program code;
The processor is used to execute any one institute that above-mentioned first aspect provides according to the instruction in said program code
The information push method stated.
In information push method provided by the present application, message push platform receive first it is any wait for PUSH message, this is waited for
PUSH message carries targets of messages mark;Then, it is grown and is connected based on the two-way communication for identifying corresponding terminal foundation with targets of messages
It connects, will wait for that PUSH message pushes to terminal;Wherein, the connection of two-way communication length is the connection established based on websocket protocol.It can
See, the application, which is grown using message push platform based on the two-way communication that websocket protocol and terminal are established, to be connected so that service
End while improving information push efficiency, can also reduce the load of server-side, solve with active push message to terminal
The problem of inefficient existing for existing message push mode, high load.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for
For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is the block schematic illustration of exemplary application scene provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of information push method provided by the embodiments of the present application;
Fig. 3 is the structural schematic diagram of system where message provided by the embodiments of the present application pushes platform;
Fig. 4 is the realization principle schematic diagram of websocket provided by the embodiments of the present application;
Fig. 5 is the schematic diagram that message pushes between realization client and client provided by the embodiments of the present application;
Fig. 6 is the schematic diagram that message pushes between realization server-side and client provided by the embodiments of the present application;
Fig. 7 provides a kind of structural schematic diagram of message pusher for the embodiment of the present application;
Fig. 8 provides a kind of structural schematic diagram of message pushing equipment for the embodiment of the present application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
For the ease of understanding technical solution provided by the present application, first the application scenarios of the application in practice are carried out below
It introduces.
Referring to Fig. 1, it illustrates the block schematic illustrations of an exemplary application scene of the embodiment of the present application, as shown in Figure 1,
Information push method provided by the present application can be applied to include client 101, message push platform 102 and server-side 103
In application scenarios;Wherein, client 101 is to refer to establish with message push platform 102 to connect, and for offering customers service
Program, such as each Mobile banking APP, browser, client 101 can carry in the terminal, can such as be mounted in smart mobile phone,
Tablet computer, laptop PC, desktop personal computer, minicomputer, medium-size computer, mainframe computer etc.
In terminal;Message push platform 102 is the platform device pushed for realizing message that the application is specially built, and can be can
It is communicated respectively with client 101 and server-side 103, and message is pushed to the server apparatus of client 101, in reality
When the hardware deployment of border, it can be independent server apparatus that message, which pushes platform 102, and cluster server can also be used to realize;
Server-side 103 is to refer to provide equipment of the information with service is calculated for client, may include management server cluster, business
Server cluster, public server cluster, other clusters etc., and server-side 103 can provide service for a client,
Can service be provided for multiple client simultaneously.
Below by taking client 101 is certain Mobile banking APP being mounted in terminal as an example, to the practical application mistake of the application
Journey illustrates, and in practical applications, the client 101 in terminal is attached with message push platform 102 first, to disappear
Breath push platform 102 can will wait for that PUSH message pushes to client 101, such as push Investment & Financing service announcements and system
Bulletin etc., wherein wait for that PUSH message carries targets of messages mark, when message push platform 102 receives any carrying message
Target identification after PUSH message, such as receive service server collection pocket transmission accumulated point exchanging this wait for PUSH message
Afterwards, it by based on identifying the two-way communication that corresponding terminal is established with the targets of messages of PUSH message carrying is waited for and growing connection, will wait pushing away
Message is sent to push to the client 101 in terminal;Wherein, the connection of two-way communication length is the company established based on websocket protocol
It connects.It is connected in this way, being grown based on the two-way communication that websocket protocol and terminal are established using message push platform, realizes clothes
Message can actively be pushed to the function of client by business end, while improving information push efficiency, also reduce server-side
Load.
Based on use above scene, the embodiment of the present application provides a kind of information push method, below with reference to attached drawing pair
This method is described in detail.
Referring to Fig. 2, it illustrates a kind of flow charts of information push method provided by the embodiments of the present application, as shown in Fig. 2,
This method includes:
Step 201:Receive it is any wait for PUSH message, this wait for PUSH message carry targets of messages mark.
In practical applications, each bank is according to own service growth requirement, or according to other service management demands etc., often
It often needs to push various message, such as the message such as push account notice or financial market notice to corresponding bank client, and
And these wait for carrying targets of messages mark in PUSH message.
Wherein, it waits for that PUSH message can be sent to message by client to push platform, can also be to be sent out by server-side
Message push platform is given, and then platform can be pushed by message again will to wait for that PUSH message is pushed to corresponding terminal, i.e.,
It realizes client and carries out message push and server-side actively to client progress message push to client;Targets of messages mark
Know the mark for the target terminal for referring to waiting for that PUSH message will be pushed to, which can be with unique mark terminal.
In the application in some possible realization methods, targets of messages mark includes the unique identifying information of terminal, wherein
Unique identifying information refers to the information for embodying terminal device uniqueness, such as can be SIM pairs built in terminal device
Unique Product sequence number SN (Serial Number) or MAC (the Media Access Control) information answered, then also may be used
Ad identifier (identifierForIdentifier, IDFA), Internet protocol when being installing terminal equipment client
Address (Internet Protocol, IP), user agent (User Agent) etc..
In order to realize that server-side will can actively wait for that PUSH message pushes to client, the application is assisted based on websocket
View has built the message pushed dedicated for message and has pushed platform, becomes between client and server-side in message transmission
Heart node, as shown in figure 3, it illustrates the structural schematic diagram of system where message provided by the embodiments of the present application push platform,
Wherein, message push platform 102 can be independent server apparatus, cluster server can also be used to realize, message pushes
Client on platform 102 and all types of terminal devices (such as PC terminals, mobile phone, tablet computer, wisdom self-aided terminal STM etc.) it
Between two-way communication chief's connection, the client push message on each type terminals, solution established based on websocket protocol
Current server-side of having determined is directed to the client with different operating system, needs to carry out caused by different information push modes
The problem of system coupling difference.Meanwhile server-side (such as management server cluster, service server cluster, public server collection
Group, other clusters etc.) http protocol and message push platform progress information exchange can also be based on.
It is any after PUSH message receiving, step 202 will be continued to execute.
Step 202:Connection is grown based on the two-way communication that corresponding terminal is established is identified with targets of messages, will wait for PUSH message
Push to terminal;Wherein, the two-way communication length connection is the connection established based on websocket protocol.
In the present embodiment, by step 201, message push platform receive server-side transmission after PUSH message,
Connection may further be grown based on the two-way communication that corresponding terminal is established is identified with targets of messages, will wait for that PUSH message pushes to
Terminal, as shown in figure 3, server-side may include service server group, management server group and other server zones, client
It can be located on the terminal devices such as mobile phone, tablet computer, wisdom self-aided terminal STM.
Before carrying out message push, message push platform needs to be in advance based on websocket protocol foundation pair with terminal
To communication chief's connection, in order to which message push platform and terminal actively can send message to other side.Wherein,
Websocket protocol is a kind of new procotol based on TCP that HTML5 is provided, and can realize that browser is complete with server
Duplexing (full-duplex) communication, that is, allow server actively to send information to client, therefore, is assisted based on websocket
View can rely on websocket technologies to realize client after message pushes and establishes two-way communication length connection between platform and terminal
Bidirectional real-time between end and server-side.
Referring to Fig. 4, the realization principle schematic diagram of websocket provided by the embodiments of the present application is shown, as shown in figure 4,
In realizing websocket connection procedures, it is necessary first to send out websocket connection requests by browser, then server
After receiving connection request, response is sent out, this process commonly referred to as " is shaken hands ".In websocket API, browser kimonos
Business device only needs to do an action shaken hands, and then, between browser and server is formed an express passway, the two it
Between mutually transferred with regard to can directly carry out data, that is, realize duplex communication.
It is understood that websocket not only may be implemented from server actively to the function of client push message,
It is not need to rely on the request from client, increases initiative and the flexibility of server;And also due to websocket
What is relied on is Transmission Control Protocol, and therefore, after a connection setup, transmitted data amount is smaller than the transmitted data amount dependent on HTTP, is improved
The efficiency of data transmission.
In the application in some possible realization methods, the connection established based on websocket protocol is based on including terminal
The two-way communication length connection that websocket protocol is initiated.
In practical application, the connection established based on websocket protocol is initiated based on websocket protocol by terminal
Two-way communication length connection, and be completed on the basis of http protocol push platform with message and shake hands, for example, specifically
Handshake procedure is as follows:
First, the client in terminal can push platform to message and send following request:
GET/chat HTTP/1.1
Host:server.example.com
Upgrade:websocket
Connection:Upgrade
Sec-WebSocket-Key:X3JJHMbDL1EzLkh9GBhXDw==
Sec-WebSocket-Protocol:chat,superchat
Sec-WebSocket-Version:13
Origin:http://ccb.com
Wherein, Upgrade:Websocket and Connection:Upgrade is the core content of websocket, is used
What it is in notification message push platform initiation is to ask to be websocket protocol, mutually to be distinguished with traditional http protocol;Sec-
What WebSocket-Key was indicated is the value of a Base64encode, is generated at random by browser, for inquiring that message pushes
Whether platform supports websocket;What Sec_WebSocket-Protocol was indicated is a user-defined character string, is used for
It distinguishes under same uniform resource locator (Uniform Resource Locator, abbreviation URL), the required association of different services
View;That Sec-WebSocket-Version is indicated is used protocol version (Websocket Draft);Origin is indicated
Be message push platform address.
Then, message pushes platform after receiving the request of client, can carry out processing and return to similar following field:
TTP/1.1 101SwitchingProtocols
Upgrade:websocket
Connection:Upgrade
Sec-WebSocket-Accept:HSmrc0sMlYUkAGmm5OPpG2HaGWk=
Sec-WebSocket-Protocol:chat
Here start to be exactly region that HTTP is ultimately responsible for, notice client successful switch agreement.
Wherein, Upgrade:Websocket and Connection:Upgrade is still in the core of websocket
Hold, be still fixed, message push platform return the value for notice client will upgrade be websocket association
View, rather than other agreements;What Sec-WebSocket-Accept was indicated is confirmed by message push platform, and encrypted
Sec-WebSocket-Key afterwards;What Sec-WebSocket-Protocol was indicated is the agreement finally used.
So far, HTTP has been finished, and following message push platform and client are exactly fully according to websocket
Agreement carries out two-way communication.
As shown in figure 3, before carrying out message push, message push platform can be connected with client end according to above-mentioned
Journey is in advance based on websocket protocol and establishes two-way communication length connection between the two, in order to which message pushes platform and terminal
Can message actively be sent to other side, may further realize and actively send message to other side between server-side and terminal,
In, carrying targets of messages mark can be waited for that PUSH message is sent to message and pushes platform by server-side by http protocol, into
And platform can be pushed by message and be based on established two-way communication length connection, this is actively waited for that PUSH message pushes to message mesh
Mark identifies the client installed in corresponding terminal.
It should be noted that each server zone in server-side can will not only wait for that PUSH message is sent by http protocol
Platform is pushed to message, similar above-mentioned connection type can also be used, base is established between server zone and message push platform
Connection is grown in the two-way communication of websocket protocol, and then each server zone can will carry targets of messages mark by the connection
That knows waits for that PUSH message is sent to message push platform.The application is not limited this.
In the application in some possible realization methods, the application wait for PUSH message may come from any client or
Any server-side.
In practical applications, a kind of optional embodiment is that the application's waits for that PUSH message may come from any visitor
Family end, and then the push of the message between client and client may be implemented.
It illustrates:Referring to Fig. 5, it illustrates message between realization client and client provided by the embodiments of the present application
The schematic diagram of push executes a business for needing lobby manager to carry out identity audit to operator with wisdom self-aided terminal STM
For, wherein wisdom self-aided terminal STM refers to voluntarily using to client in bank, self-service to complete the similar of required function
Equipment.STM execute one need the business that lobby manager carries out operator identity audit before, client on STM and
Client on lobby manager's tablet computer be required to it is pre- first pass through websocket connections by respective request be sent to message push
Connection, and then STM are grown in platform, the two-way communication so as to be established between message push platform based on websocket protocol
On client can based on the connection to message push platform send carry lobby manager's tablet computer unique identification letter
Breath (such as MAC information) needs wait for PUSH message of the lobby manager to operator's progress identity audit, and then message push is flat
Platform is receiving this after PUSH message, will grow connection based on the two-way communication established with lobby manager's tablet computer, this is waited for
PUSH message pushes to the client on lobby manager's tablet computer, flat with lobby manager to realize the client on STM
Between client on plate computer message push, in order to lobby manager's tablet computer client to PUSH message content into
The specific business datum of current identity audit can be obtained after row processing to service server collection pocket transmission transaction request, in turn
Service server cluster can notify lobby manager to corresponding STM to operator after carrying out analyzing processing to business datum
Carry out identity audit and mandate.
Correspondingly, another optional embodiment is that the application's waits for that PUSH message may come from any server-side,
And then the push of the message between server-side and client may be implemented,.
It illustrates:Referring to Fig. 6, it illustrates message between realization server-side and client provided by the embodiments of the present application
The schematic diagram of push has checked VIP client with server-side (being specially service server cluster) and has reached from the background, notice hall warp
For reason provides service for it, similarly, before example execution, the client on lobby manager's tablet computer needs logical in advance
Websocket protocol is crossed, the two-way communication length established between message push platform connects.Service server cluster can be to disappearing
The needs that breath push platform sends the unique identifying information (such as product ID SN) for carrying lobby manager's tablet computer are big
Hall handle the PUSH message that waits for arrived VIP offering customers services, and then message push platform disappears receiving this and wait pushing
After breath, connection will be grown based on the two-way communication established with lobby manager's tablet computer, this is waited for that PUSH message pushes to hall's warp
The client on tablet computer is managed, to realize disappearing for client of the service server cluster on lobby manager's tablet computer
Breath push, in order to which the client on lobby manager's tablet computer can be to services sets after handling PUSH message content
Pocket transmission transaction request is to obtain the specific data of current VIP, and then service server cluster is analyzed to business datum
After processing, lobby manager can be notified to provide counseling services and product in face of VIP client to corresponding cabinet.
In the application in some possible realization methods, by step 202, by after PUSH message pushes to terminal, this
Application can also include:
Receive the push result information that terminal returns, wherein push result information is to wait for PUSH message push successfully letter
Cease or wait for the information of PUSH message push failure;
If push result information is the information for waiting for PUSH message push failure, push again waits for PUSH message to terminal.
In practical applications, when can also further be received after PUSH message pushes to terminal by step 202
The push result information that terminal returns, wherein push result information is to wait for that PUSH message pushes successful information or waits for PUSH message
Push failure information.
One kind being optionally achieved in that after message push platform completes message push, terminal will determine that message pushes
Whether request meets the preset condition of terminal itself, for example whether meeting specified data format etc., if met, to information
Push platform return waits for that PUSH message pushes successful information, if it does not meet, or other problems occur causes message to push
It is unsuccessful, all the information for waiting for PUSH message push failure will be returned to information push platform, further, when message pushes platform
After the information to fail after PUSH message push for receiving terminal return, it will wait for that PUSH message pushes to corresponding terminal again.
In this way, in information push method provided by the present application, message push platform receive first it is any wait for PUSH message,
This waits for that PUSH message carries targets of messages mark;Then, based on the two-way communication for identifying corresponding terminal foundation with targets of messages
Long connection, will wait for that PUSH message pushes to terminal;Wherein, the connection of two-way communication length is the company established based on websocket protocol
It connects.It connects, makes as it can be seen that the application is grown using message push platform based on the two-way communication that websocket protocol and terminal are established
Obtain server-side while improving information push efficiency, can also reduce the load of server-side with active push message to terminal,
Solves the problems, such as inefficient, high load existing for existing message push mode.
Based on message above method for pushing, present invention also provides a kind of message pushers, as shown in fig. 7, the device
Including:
First receiving unit 701, for receive it is any wait for PUSH message, it is described to wait for that PUSH message carries targets of messages mark
Know;
First push unit 702, for long based on the two-way communication that corresponding terminal is established is identified with the targets of messages
Connection, waits for that PUSH message pushes to the terminal by described;Wherein, the two-way communication length connection is assisted based on websocket
Discuss the connection established.
Optionally, the connection established based on websocket protocol includes that the terminal is sent out based on websocket protocol
The two-way communication length connection risen.
Optionally, described to wait for that PUSH message comes from any client or any server-side.
Optionally, the targets of messages mark includes the unique identifying information of the terminal.
Optionally, described device further includes:
Second receiving unit, the push result information returned for receiving the terminal, the push result information is institute
It states and waits for that PUSH message pushes successful information or the information for waiting for PUSH message push failure;
Second push unit, if being the information for waiting for PUSH message push failure for the push result information,
Wait for PUSH message to the terminal described in push again.
In this way, in message pusher provided by the present application, message push platform receive first it is any wait for PUSH message,
This waits for that PUSH message carries targets of messages mark;Then, based on the two-way communication for identifying corresponding terminal foundation with targets of messages
Long connection, will wait for that PUSH message pushes to terminal;Wherein, the connection of two-way communication length is the company established based on websocket protocol
It connects.It connects, makes as it can be seen that the application is grown using message push platform based on the two-way communication that websocket protocol and terminal are established
Obtain server-side while improving information push efficiency, can also reduce the load of server-side with active push message to terminal,
Solves the problems, such as inefficient, high load existing for existing message push mode.
Correspondingly, the embodiment of the present invention also provides a kind of message pushing equipment, it is shown in Figure 8, may include:
Processor 801, memory 802, input unit 803 and output device 804.Processing in typesetting document structure tree equipment
The quantity of device 801 can be one or more, in Fig. 8 by taking a processor as an example.In some embodiments of the invention, processor
801, memory 802, input unit 803 and output device 804 can be connected by bus or other means, wherein with logical in Fig. 8
It crosses for bus connection.
Memory 802 can be used for storing software program and module, and processor 801 is stored in memory 802 by operation
Software program and module, to execute various function application and the data processing of message pushing equipment.Memory 802 can
Include mainly storing program area and storage data field, wherein storing program area can storage program area, needed at least one function
Application program etc..In addition, memory 802 may include high-speed random access memory, can also include non-volatile memories
Device, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Input unit 803 can be used
It is related with the user setting of message pushing equipment and function control in the number or character information that receive input, and generation
Signal inputs.
Specifically in the present embodiment, processor 801 can be according to following instruction, by one or more application program
The corresponding executable file of process be loaded into memory 802, and be stored in memory 802 by processor 801 to run
Application program, to realize the various functions in above-mentioned information push method.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of module therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not
In the case of making the creative labor, you can to understand and implement.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
A kind of information push method, device and the equipment provided above the embodiment of the present application is described in detail,
Specific examples are used herein to illustrate the principle and implementation manner of the present application, and the explanation of above example is only used
Understand the present processes and its core concept in help;Meanwhile for those of ordinary skill in the art, according to the application's
Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as
Limitation to the application.
Claims (11)
1. a kind of information push method, which is characterized in that the method is applied to message and pushes platform, the method includes:
Receive it is any wait for PUSH message, it is described to wait for that PUSH message carries targets of messages mark;
Connection is grown based on the two-way communication that corresponding terminal is established is identified with the targets of messages, waits for that PUSH message pushes by described
To the terminal;Wherein, the two-way communication length connection is the connection established based on websocket protocol.
2. information push method according to claim 1, which is characterized in that it is described based on websocket protocol establish
Connection includes the two-way communication length connection that the terminal is initiated based on websocket protocol.
3. information push method according to claim 1, which is characterized in that described to wait for that PUSH message comes from any client
End or any server-side.
4. information push method according to any one of claims 1 to 3, which is characterized in that the targets of messages mark packet
Include the unique identifying information of the terminal.
5. information push method according to claim 1, which is characterized in that described to be based on and targets of messages mark pair
The two-way communication length connection that the terminal answered is established, by it is described wait for that PUSH message pushes to the terminal after, further include:
The push result information that the terminal returns is received, the push result information waits for that PUSH message push is successful to be described
Information or the information for waiting for PUSH message push failure;
If the push result information is the information for waiting for PUSH message push failure, PUSH message is waited for described in push again
To the terminal.
6. a kind of message pusher, which is characterized in that described device is applied to message and pushes platform, and described device includes:
First receiving unit, for receive it is any wait for PUSH message, it is described to wait for that PUSH message carries targets of messages mark;
First push unit is connected for being grown based on the two-way communication for identifying corresponding terminal foundation with the targets of messages, will
It is described to wait for that PUSH message pushes to the terminal;Wherein, the two-way communication length connection is established based on websocket protocol
Connection.
7. message pusher according to claim 6, which is characterized in that it is described based on websocket protocol establish
Connection includes the two-way communication length connection that the terminal is initiated based on websocket protocol.
8. message pusher according to claim 6, which is characterized in that described to wait for that PUSH message comes from any client
End or any server-side.
9. according to claim 6 to 8 any one of them message pusher, which is characterized in that the targets of messages mark packet
Include the unique identifying information of the terminal.
10. message pusher according to claim 6, which is characterized in that described device further includes:
Second receiving unit, the push result information returned for receiving the terminal, the push result information are described wait for
PUSH message pushes successful information or the information for waiting for PUSH message push failure;
Second push unit, if being the information for waiting for PUSH message push failure for the push result information, again
Wait for PUSH message to the terminal described in push.
11. a kind of message pushing equipment, which is characterized in that the equipment includes memory and processor,
Said program code is transferred to the processor by the memory for storing program code;
The processor is used for according to the instruction in said program code, and perform claim requires the message described in any one of 1-5
Method for pushing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810525379.6A CN108390950A (en) | 2018-05-28 | 2018-05-28 | A kind of information push method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810525379.6A CN108390950A (en) | 2018-05-28 | 2018-05-28 | A kind of information push method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108390950A true CN108390950A (en) | 2018-08-10 |
Family
ID=63071958
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810525379.6A Pending CN108390950A (en) | 2018-05-28 | 2018-05-28 | A kind of information push method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108390950A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109462544A (en) * | 2018-11-16 | 2019-03-12 | 贵阳朗玛信息技术股份有限公司 | The method and device of instant messaging, instant communicating system, readable storage medium storing program for executing |
CN109698799A (en) * | 2019-01-14 | 2019-04-30 | 广州荔支网络技术有限公司 | A kind of information push method, device and mobile terminal |
CN109995879A (en) * | 2019-04-15 | 2019-07-09 | 深圳壹账通智能科技有限公司 | Device, method and the storage medium of message push |
CN110417865A (en) * | 2019-06-28 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of method and apparatus that resource is found automatically |
CN110730118A (en) * | 2019-09-24 | 2020-01-24 | 北京真视通科技股份有限公司 | Message sending method, device, computer equipment and storage medium |
CN111030990A (en) * | 2019-11-05 | 2020-04-17 | 华为技术有限公司 | Method for establishing communication connection, client and server |
CN112019625A (en) * | 2020-08-31 | 2020-12-01 | 重庆紫光华山智安科技有限公司 | Websocket-based message pushing method, system, equipment and medium |
CN112511580A (en) * | 2019-09-16 | 2021-03-16 | 北京国双科技有限公司 | Message pushing method, device, storage medium and equipment |
CN112532595A (en) * | 2020-11-18 | 2021-03-19 | 四川安迪科技实业有限公司 | Satellite network data authority control method, device and storage medium |
CN113347234A (en) * | 2021-05-21 | 2021-09-03 | 微民保险代理有限公司 | Network information acquisition method, device, system, computer equipment and storage medium |
CN114900510A (en) * | 2022-03-29 | 2022-08-12 | 北京沃东天骏信息技术有限公司 | Information pushing method, server, client and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9288324B2 (en) * | 2014-08-18 | 2016-03-15 | Wells Fargo Bank, N.A. | Call center call-back push notifications |
CN107026917A (en) * | 2017-06-16 | 2017-08-08 | 智者四海(北京)技术有限公司 | The method and system pushed for message |
CN107395767A (en) * | 2017-08-31 | 2017-11-24 | 北京奇虎科技有限公司 | Message push system and method based on long connection |
CN107426081A (en) * | 2017-04-18 | 2017-12-01 | 贵阳朗玛信息技术股份有限公司 | A kind of real-time messages transmission method and system |
CN108011937A (en) * | 2017-11-29 | 2018-05-08 | 努比亚技术有限公司 | Information push method, server, intelligent terminal and computer-readable recording medium |
-
2018
- 2018-05-28 CN CN201810525379.6A patent/CN108390950A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9288324B2 (en) * | 2014-08-18 | 2016-03-15 | Wells Fargo Bank, N.A. | Call center call-back push notifications |
CN107426081A (en) * | 2017-04-18 | 2017-12-01 | 贵阳朗玛信息技术股份有限公司 | A kind of real-time messages transmission method and system |
CN107026917A (en) * | 2017-06-16 | 2017-08-08 | 智者四海(北京)技术有限公司 | The method and system pushed for message |
CN107395767A (en) * | 2017-08-31 | 2017-11-24 | 北京奇虎科技有限公司 | Message push system and method based on long connection |
CN108011937A (en) * | 2017-11-29 | 2018-05-08 | 努比亚技术有限公司 | Information push method, server, intelligent terminal and computer-readable recording medium |
Non-Patent Citations (3)
Title |
---|
GIRIJA SARIDE,JAYA BALAN AARON,JOY BOSE: ""Secure Web Push System"", 《2016 8TH INTERNATIONAL CONFERENCE ON COMMUNICATION SYSTEMS AND NETWORKS 》 * |
李长云,文鸿,翁艳彬: "《移动互联网技术》", 30 March 2016 * |
杨文婷: ""基于HTTP长连接的消息推送平台的研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109462544A (en) * | 2018-11-16 | 2019-03-12 | 贵阳朗玛信息技术股份有限公司 | The method and device of instant messaging, instant communicating system, readable storage medium storing program for executing |
CN109698799B (en) * | 2019-01-14 | 2020-06-02 | 广州荔支网络技术有限公司 | Message pushing method and device and mobile terminal |
CN109698799A (en) * | 2019-01-14 | 2019-04-30 | 广州荔支网络技术有限公司 | A kind of information push method, device and mobile terminal |
CN109995879A (en) * | 2019-04-15 | 2019-07-09 | 深圳壹账通智能科技有限公司 | Device, method and the storage medium of message push |
CN110417865A (en) * | 2019-06-28 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of method and apparatus that resource is found automatically |
CN112511580A (en) * | 2019-09-16 | 2021-03-16 | 北京国双科技有限公司 | Message pushing method, device, storage medium and equipment |
CN110730118A (en) * | 2019-09-24 | 2020-01-24 | 北京真视通科技股份有限公司 | Message sending method, device, computer equipment and storage medium |
CN111030990A (en) * | 2019-11-05 | 2020-04-17 | 华为技术有限公司 | Method for establishing communication connection, client and server |
CN111030990B (en) * | 2019-11-05 | 2022-04-12 | 华为技术有限公司 | Method for establishing communication connection, client and server |
CN112019625A (en) * | 2020-08-31 | 2020-12-01 | 重庆紫光华山智安科技有限公司 | Websocket-based message pushing method, system, equipment and medium |
CN112532595A (en) * | 2020-11-18 | 2021-03-19 | 四川安迪科技实业有限公司 | Satellite network data authority control method, device and storage medium |
CN112532595B (en) * | 2020-11-18 | 2022-07-22 | 四川安迪科技实业有限公司 | Satellite network data authority control method, device and storage medium |
CN113347234A (en) * | 2021-05-21 | 2021-09-03 | 微民保险代理有限公司 | Network information acquisition method, device, system, computer equipment and storage medium |
CN114900510A (en) * | 2022-03-29 | 2022-08-12 | 北京沃东天骏信息技术有限公司 | Information pushing method, server, client and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108390950A (en) | A kind of information push method, device and equipment | |
US11411897B2 (en) | Communication method and communication apparatus for message queue telemetry transport | |
JP4381655B2 (en) | Storage system, storage device, and information sharing method using the storage device | |
US20050193056A1 (en) | Message transfer using multiplexed connections in an open system interconnection transaction processing environment | |
JP4965574B2 (en) | Port sharing among multiple processes | |
CN107528891B (en) | Websocket-based automatic clustering method and system | |
US7694178B2 (en) | Method, apparatus and computer program product for transaction recovery | |
US20060167897A1 (en) | Administration of a broker-based publish/subscribe messaging system | |
JPS62118465A (en) | Propagation of resource information | |
CN103139157B (en) | A kind of based on the network communication method of socket, Apparatus and system | |
CN100363870C (en) | Method and apparatus for providing multi-client support in a SIP-enabled terminal | |
CN107517227B (en) | Session implementation method and device for distributed consistency system | |
CN112769837B (en) | Communication transmission method, device, equipment, system and storage medium based on WebSocket | |
CN108712457A (en) | Back-end server dynamic load method of adjustment and device based on Nginx reverse proxys | |
CN115004673B (en) | Message pushing method, device, electronic equipment and computer readable medium | |
CN112788074A (en) | Data transmitting method, processing method, receiving method and equipment and storage medium | |
CN110266810A (en) | Message receival method, equipment and storage medium based on MQTT agreement | |
CN112134915B (en) | Application layer protocol decoupling universal network processing system | |
CN113259415B (en) | Network message processing method and device and network server | |
CN1595890B (en) | Virtual connectivity with subscribe-notify service | |
CN107682460A (en) | A kind of distributed storage trunked data communication method and system | |
WO2020098435A1 (en) | Method for sending and receiving data message, storage medium and processor | |
CN116319732A (en) | Message queue centralized configuration management system and method based on RabbitMQ | |
US6553406B1 (en) | Process thread system receiving request packet from server thread, initiating process thread in response to request packet, synchronizing thread process between clients-servers. | |
CN113254050A (en) | Micro front-end system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180810 |
|
RJ01 | Rejection of invention patent application after publication |