Summary of the invention
The purpose of the present invention is intended at least can solve above-mentioned one of technological deficiency, especially consuming flow techniques defect,
And update method, system, computer equipment and the storage medium of a kind of direct broadcasting room pushed information provided.
The present invention provides a kind of update method of direct broadcasting room pushed information, includes the following steps:
The connection request at customer in response end establishes the long connection message channel between each client;
The release status for monitoring the pushed information of direct broadcasting room in real time obtains corresponding new edition and pushes away when release status updates
It delivers letters breath;
The new edition pushed information is sent to each client by the long connection message channel, it is each for updating
The pushed information of client.
In one embodiment, it is logical to establish the long connection message between each client for the connection request at customer in response end
The step of road, comprising:
Receive the connection request that each client is sent;
The corresponding long connection type of each client is determined according to the client type carried in the connection request;
Establish the long connection message channel between each client respectively according to the long connection type.
In one embodiment, the release status of the real-time pushed information for monitoring direct broadcasting room, when release status updates
When, before the step of obtaining corresponding new edition pushed information, further includes:
The initial pushed information of corresponding direct broadcasting room is obtained according to the direct broadcasting room mark carried in the connection request;
The initial pushed information is pushed to corresponding client;Wherein, the initial pushed information is used to indicate institute
State long connection message channel described in client terminal start-up.
In one embodiment, after the step of acquisition corresponding new edition pushed information, further includes:
The release status of the pushed information of the direct broadcasting room is failed to give notice to state labeled as update;Wherein, described to update not
Notice state is to indicate that the pushed information of direct broadcasting room updates and do not push the new edition pushed information also to the client
State.
In one embodiment, it is described the new edition pushed information is sent to by the long connection message channel it is each
Client, after the step of updating the pushed information of each client, further includes:
The release status of the pushed information of the direct broadcasting room is changed to send and does not reply acknowledgement state;Wherein, the hair
Sending and not replying acknowledgement state is to indicate to have pushed the new edition pushed information to the client, and do not receive the client also
Hold the state of the confirmation message returned.
In one embodiment, the release status of the pushed information by the direct broadcasting room is changed to send and not reply really
After the step of recognizing state, further includes:
The release status of the pushed information of the direct broadcasting room is changed to send by the confirmation message for receiving the client
Acknowledgement state is replied;Wherein, acknowledgement state has been replied in the transmission indicates to receive that the client returns for described
The state of the confirmation message of new edition pushed information.
In one embodiment, it is described the new edition pushed information is sent to by the long connection message channel it is each
Client, after the step of updating the pushed information of each client, further includes:
If being not received by the client in preset time for the confirmation message of the new edition pushed information, repeat
The new edition pushed information is pushed to the client, until receiving the client for the new edition pushed information really
Recognize message.
In one embodiment, the pushed information includes fictitious assets data income seniority among brothers and sisters, the consumption of fictitious assets data
Seniority among brothers and sisters or fictitious assets data give at least one of seniority among brothers and sisters.
A kind of update method of direct broadcasting room pushed information, includes the following steps:
Connection request is sent to server, with the long connection message channel established between the server;
Receive the new edition pushed information of the server push;The new edition pushed information is by the server in direct broadcasting room
The release status of pushed information in real time obtain when updating;
Pushed information is updated using the new edition pushed information.
In one embodiment, before the step of new edition pushed information for receiving the server push, further includes:
Receive the initial pushed information of the direct broadcasting room of the server push;
Start the long connection message channel according to the initial pushed information.
A kind of more new system of direct broadcasting room pushed information, comprising:
Connection establishment module, the connection request for customer in response end establish the long connection message between each client
Channel;
Module is monitored, the release status of the pushed information for monitoring direct broadcasting room in real time is obtained when release status updates
Corresponding new edition pushed information;
Pushing module, for the new edition pushed information to be sent to each client by the long connection message channel
End, for updating the pushed information of each client.
A kind of more new system of direct broadcasting room pushed information, comprising:
Link block is requested, for sending connection request to server, is connected with establishing the length between the server
Message channel;
Receiving module, for receiving the new edition pushed information of the server push;The new edition pushed information is by described
What server obtained in real time when the release status of the pushed information of direct broadcasting room updates;
Update module, for being updated using the new edition pushed information to pushed information.
The present invention also provides a kind of computer equipment, including memory and processor, calculating is stored in the memory
Machine readable instruction, when the computer-readable instruction is executed by the processor, so that the processor executes such as any implementation
The step of update method of the example direct broadcasting room pushed information.
The present invention also provides computer readable storage mediums, are stored with computer-readable instruction, the computer-readable finger
When order is executed by one or more processors, so that one or more processors execute the push letter of direct broadcasting room described in any embodiment
The step of update method of breath.
Update method, system, computer equipment and the storage medium of above-mentioned direct broadcasting room pushed information, by establishing and visitor
The release status of the pushed information of direct broadcasting room is monitored in long connection message channel between the end of family in real time, when release status updates,
New edition pushed information is actively pushed to each client, when pushed information renewal frequency is not high, client master can be saved
It is dynamic pull pushed information and caused by wandering be lost, and the new edition pushed information of update can be pushed to each client in time
End, client can receive in time and update pushed information.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
The update method of direct broadcasting room pushed information provided by the present application, can be applied in application environment as shown in Figure 1.
Specifically, the connection request at server customer in response end establishes the long connection message channel between each client;Wherein, it takes
Live streaming platform can be set in business device, being broadcast live includes multiple direct broadcasting rooms in platform;Client may include viewer end and main broadcaster
End;Server monitors the release status of the pushed information of direct broadcasting room in real time, when release status updates, obtains corresponding new edition and pushes away
It delivers letters breath;The new edition pushed information is sent to each viewer end and main broadcaster by the long connection message channel by server
End, for updating the pushed information of each viewer end and main broadcaster end.
Those skilled in the art of the present technique be appreciated that " client " used herein above can be mobile phone, tablet computer,
PDA (Personal Digital Assistant, personal digital assistant), MID (Mobile Internet Device, movement
Internet device) etc.;" server " can be with the server cluster of the either multiple server compositions of independent server come real
It is existing;N, M in Fig. 1 indicate natural number.
In one embodiment, as shown in Fig. 2, providing a kind of update method of direct broadcasting room pushed information, in this way
Applied to being illustrated for the server in Fig. 1, may comprise steps of:
Step S202, the connection request at customer in response end establish the long connection message channel between each client.
In this step, long connection message channel indicates the connection between client and server without being to send a data
It disconnects, and is to maintain the relationship being continuously connected with, in order to which server sends new edition pushed information to client at any time.
In one embodiment, the connection request at the customer in response end of step S202 establishes the length between each client
The step of connection message channel, may include:
(1) connection request that each client is sent is received;
(2) the corresponding long connection type of each client is determined according to the client type carried in connection request;
(3) the long connection message channel between each client is established respectively according to long connection type.
In the specific implementation process, led to due to different client types in requisition for using different long connection messages
Road, therefore, in server can prestore a variety of long connection message channels, and each long connection message channel is respectively arranged with corresponding visitor
Family end type can inquire pair when the client type carried in the connection request that server gets client transmission
The long connection message channel type answered.
Step S204 monitors the release status of the pushed information of direct broadcasting room in real time, when release status updates, obtains and corresponds to
New edition pushed information.
Wherein, pushed information can be fictitious assets data income seniority among brothers and sisters, fictitious assets data consumption seniority among brothers and sisters and virtual money
It produces data and gives seniority among brothers and sisters etc. the direct broadcasting room information that meeting not timing updates;New edition pushed information refers to updated pushed information.
Specifically, server monitors the release status of the pushed information of direct broadcasting room in real time, new edition can be pushed at any time and believed
Breath is sent to client by long connection message channel, when pushed information renewal frequency is not high, can save client actively
Pull pushed information and caused by wandering be lost, and the new edition pushed information of update can be pushed to each client in time.
In one embodiment, before the release status of the pushed information of the real-time monitoring direct broadcasting room of step S204, also
May include:
(1) the initial pushed information of corresponding direct broadcasting room is obtained according to the direct broadcasting room mark carried in connection request.
Wherein, when initial pushed information refers to that server receives the connection request of client, the current push of direct broadcasting room
Information, for example, server obtains the current fictitious assets data of direct broadcasting room and gives when server receives the connection request of client
Send seniority among brothers and sisters.
(2) initial pushed information is pushed to corresponding client;Wherein, initial pushed information is used to indicate client and opens
Move long connection message channel.
When initial pushed information is pushed to client by server, at the beginning of initial pushed information instruction client carries out interface
Beginningization, then the long connection message channel of client terminal start-up, keeps the long connection relationship between server, so that server continues
New edition pushed information is pushed by long connection message channel.
For example, user, which opens mobile phone, is broadcast live software, live streaming software interface is shown there are many direct broadcasting room, when user's selection is wanted to see
Direct broadcasting room when, i.e. server receives connection request, and server is established according to type of cell phone information and is broadcast live between software
Long interface channel, return user selection direct broadcasting room Video stream information to client, while obtain the direct broadcasting room currently it is virtual
Asset data gives the initial pushed information of seniority among brothers and sisters etc. and is pushed to client, initial to carry out the straight of information instruction mobile phone live streaming software
It broadcasts an interface and initializes and start long connection message channel, interface is broadcast live to mobile phone with the pushed information of lasting push direct broadcasting room.
New edition pushed information is sent to each client by long connection message channel by step S206, each for updating
The pushed information of a client.
After long connection message channel start, server keeps persistently pushing new edition pushed information to client, new edition
Pushed information is used to indicate client and replaces the last pushed information received using the new edition pushed information being currently received,
Request of the client transmission for pushed information is not needed, but just automatically updates client when receiving new edition pushed information
Pushed information.
In above-described embodiment, server monitors live streaming by the long connection message channel established between client in real time
Between pushed information release status, when release status updates, new edition pushed information is actively pushed to each visitor by server
Family end, when pushed information renewal frequency is not high, client active pull pushed information can be saved and caused by flow loss,
And the new edition pushed information of update can be pushed to each client in time, client can receive in time and update push letter
Breath.
Above embodiments elaborate the long connection message channel that server is established between client, push new edition in real time and push away
Deliver letters breath to client process, the pushed information of direct broadcasting room described further below release status change process.
In one embodiment, after the corresponding new edition pushed information of the acquisition of step S204, can also include:
The release status of the pushed information of direct broadcasting room is failed to give notice to state labeled as update;Wherein, it updates and fails to give notice state
Be indicate direct broadcasting room pushed information update and do not push also new edition pushed information to client state.
Further, new edition pushed information by long connection message channel is sent to each client by step S206,
After pushed information for updating each client, can also include:
The release status of the pushed information of direct broadcasting room is changed to send and does not reply acknowledgement state;Wherein, it sends and does not reply
Acknowledgement state is the shape for indicating to have pushed new edition pushed information to client, and not receiving the confirmation message of client return also
State.
Further, the release status of the pushed information of direct broadcasting room is changed to send by step S206 does not reply confirmation shape
After state, can also include:
The release status of the pushed information of direct broadcasting room is changed to send and replied really by the confirmation message for receiving client
Recognize state;Wherein, transmission has replied acknowledgement state and has indicated to receive the disappearing for the confirmation of new edition pushed information of client return
The state of breath.
In above-described embodiment, server is in the different phase during push according to new edition pushed information, pushes away to new edition
The state of breath of delivering letters is marked, and can confirm which rank is current push process arrived according to the release status of pushed information
Section.
As shown in figure 3, in one embodiment, step S206 connects the updated fictitious assets rating Information of institute by long
It connects message channel to be pushed to after client, can also include:
If being not received by client in preset time for the confirmation message of new edition pushed information, repeat to push new edition
Pushed information is to client, until receiving client for the confirmation message of new edition pushed information.
When being not received by the confirmation message of client return in preset time, push new edition PUSH message can be repeated
To client, until receiving the confirmation message of client return.
When being not received by the confirmation message of client return in preset time, long connection message channel can also be detected
Whether normal operation, if detecting in long connection message channel normal operation, repeat to push new edition PUSH message to client;If
It detects that long connection message channel is operating abnormally, then re-establishes long connection message channel, push new edition PUSH message again and arrive
Client.
In above-described embodiment, server is by repeating push new edition pushed information to client, until receiving client
For the confirmation message of new edition pushed information, client can be made to timely receive new edition pushed information and be updated.
In one embodiment, as shown in figure 4, providing a kind of update method of direct broadcasting room pushed information, this method is answered
Used in client, may include steps of:
Step S402 sends connection request to server, with the long connection message channel between foundation and server.
In this step, client type is carried in connection request, and a variety of long connection messages can be prestored in server
Channel, each long connection message channel are respectively arranged with corresponding client type, and server gets the connection of client transmission
When the client type carried in request, corresponding long connection message channel type can be inquired, and establish and client class
The corresponding long interface channel of type.
Step S404 receives the new edition pushed information of server push;New edition pushed information is by server in direct broadcasting room
What the release status of pushed information obtained in real time when updating.
Wherein, pushed information can be fictitious assets data income seniority among brothers and sisters, fictitious assets data consumption seniority among brothers and sisters and virtual money
It produces data and gives seniority among brothers and sisters etc. the direct broadcasting room information that meeting not timing updates;New edition pushed information refers to that the updated of direct broadcasting room pushes away
It delivers letters breath.
In one embodiment, before the new edition pushed information of the reception server push of step S404, can also include:
(1) the initial pushed information of the direct broadcasting room of server push is received;
(2) long connection message channel is started according to initial pushed information.
Wherein, when initial pushed information can refer to that server receives the connection request of client, direct broadcasting room is current
Pushed information.
It, can be according to initial pushed information by client when client receives the initial pushed information of server transmission
Interface initialization, then the long connection message channel of client terminal start-up, keeps the long connection relationship between server, to continue
Receive the new edition pushed information of server push.
Step S406 is updated pushed information using new edition pushed information.
In the specific implementation process, it after the long connection message channel of client terminal start-up, can keep continuing to receive server
The new edition pushed information of push, is often connected to new edition pushed information, with regard to utilizing the new edition pushed information replacement upper one being currently received
The secondary pushed information received.
In above-described embodiment, client is believed by the push in direct broadcasting room of long connection message channel reception server push
The release status of breath obtains new edition pushed information when updating in real time;When pushed information renewal frequency is not high, client can be saved
Hold active pull pushed information and caused by flow loss, and the new edition pushed information of update can be will acquire in time.
Above embodiments elaborate that client persistently receives the process of new edition pushed information by long connection message channel, under
Face will elaborate the interaction embodiment between server and client side in conjunction with attached drawing.
In one embodiment, as shown in figure 5, providing a kind of update method of direct broadcasting room pushed information, may include
Following steps:
Step S501, client send connection request to server.
In this step, client type is carried in the connection request that client is sent, different client types is corresponding
It needs using different long connection message channels.
Step S502, it is logical that the connection request at server customer in response end establishes the long connection message between each client
Road.
Specifically, can prestore a variety of long connection message channels in server, each long connection message channel is respectively arranged with
Corresponding client type, when the client type carried in the connection request that server gets client transmission
It inquires and establishes corresponding long connection message channel type.
Step S503, server monitor the release status of the pushed information of direct broadcasting room in real time.
In the specific implementation process, after server establishes the long connection message channel between client, server is obtained
The pushed information between current live is taken, i.e., initial pushed information is pushed to client by initial pushed information, and client terminal start-up should
Long connection message channel.
Step S504, when release status updates, server obtains corresponding new edition pushed information.
After long connection message channel is opened, server persistently obtains the new edition pushed information of direct broadcasting room.
The new edition pushed information is sent to each client by the long connection message channel by step S505, server
End.
Specifically, server just passes through long connection message channel will when the release status of the pushed information of direct broadcasting room updates
The new edition pushed information of update is pushed to client.
Step S506, client update pushed information according to the new edition pushed information.
In the specific implementation process, client updates the last push received using the new edition pushed information received
Information.
In above-described embodiment, server by establish and client between long connection message channel, client terminal start-up and
Long connection message channel between server, server monitors the release status of the pushed information of direct broadcasting room in real time, when version shape
When state updates, new edition pushed information is actively pushed to each client, client updates last using new edition pushed information
The pushed information received can save client active pull pushed information and make when pushed information renewal frequency is not high
At flow loss, and the new edition pushed information of update can be pushed to each client in time, client can connect in time
It receives and updates pushed information.
Above embodiments elaborate the mistake for carrying out information exchange between server and client side by long connection message channel
The process of the release status change of the pushed information of direct broadcasting room is further described below with reference to attached drawing for journey.
As shown in fig. 6, in one embodiment, it is as follows that the release status of the pushed information of direct broadcasting room specifically changes state:
A, client send connection request to server;
B, server establish corresponding long connection message channel according to the client type that the connection request of client carries;
C, server obtain the current pushed information of direct broadcasting room;
The current pushed information of direct broadcasting room is pushed to client as initial pushed information by d, server;
E, client receive initial pushed information, initialize interface and start long connection message channel;
F, when the version updating of the pushed information of direct broadcasting room, server obtains the new edition pushed information of direct broadcasting room;
G, server fail to give notice the release status of pushed information to state labeled as update;
New edition pushed information is pushed to client by h, server;
The release status of pushed information is not replied acknowledgement state labeled as transmission by i, server;
J, client send a confirmation message to server;
The release status of pushed information has been replied acknowledgement state, complete push letter labeled as transmission by k, server
The process that breath updates terminates.
In above-described embodiment, server is in the different phase during push according to new edition pushed information, pushes away to new edition
The state of breath of delivering letters is marked, and can confirm which rank is current push process arrived according to the release status of pushed information
Section.
As shown in fig. 7, Fig. 7 is the structural schematic diagram of the more new system of direct broadcasting room pushed information in one embodiment, this reality
It applies and a kind of more new system of direct broadcasting room pushed information is provided in example, including connection establishment module 702, monitoring module 704 and push
Module 706, in which:
Connection establishment module 702, the connection request for customer in response end are established and the long connection between each client
Message channel;
Monitoring module 704, the release status of the pushed information for monitoring direct broadcasting room in real time, when release status updates,
Obtain corresponding new edition pushed information;
Pushing module 706 is used for for new edition pushed information to be sent to each client by long connection message channel
Update the pushed information of each client.
As shown in figure 8, Fig. 8 is the structural schematic diagram of the more new system of direct broadcasting room pushed information in one embodiment, this reality
It applies and a kind of more new system of direct broadcasting room pushed information is provided in example, including request link block 802, receiving module 804 and update
Module 806, in which:
Link block 802 is requested, for sending connection request to server, is disappeared with the long connection between foundation and server
Cease channel;
Receiving module 804, for receiving the new edition pushed information of server push;New edition pushed information is by server straight
What the release status of the pushed information between broadcasting obtained in real time when updating;
Update module 806, for being updated using new edition pushed information to pushed information.
The specific restriction of more new system about direct broadcasting room pushed information, which may refer to push above for direct broadcasting room, to be believed
The restriction of the update method of breath, details are not described herein.Modules in the more new system of above-mentioned direct broadcasting room pushed information can be complete
Portion or part are realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of calculating
In processor in machine equipment, it can also be stored in a software form in the memory in computer equipment, in order to processor
It calls and executes the corresponding operation of the above modules.
As shown in figure 9, Fig. 9 is the schematic diagram of internal structure of computer equipment in one embodiment.The computer equipment packet
Include processor, non-volatile memory medium, memory and the network interface connected by system bus.Wherein, which sets
Standby non-volatile memory medium is stored with operating system, database and computer-readable instruction, can be stored with control in database
Part information sequence when the computer-readable instruction is executed by processor, may make processor to realize a kind of direct broadcasting room pushed information
Update method.The processor of the computer equipment supports the fortune of entire computer equipment for providing calculating and control ability
Row.Computer-readable instruction can be stored in the memory of the computer equipment, which is executed by processor
When, it may make processor to execute a kind of update method of direct broadcasting room pushed information.The network interface of the computer equipment be used for
Terminal connection communication.It will be understood by those skilled in the art that structure shown in Fig. 9, only relevant to application scheme
The block diagram of part-structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific to calculate
Machine equipment may include perhaps combining certain components or with different components than more or fewer components as shown in the figure
Arrangement.
In one embodiment it is proposed that a kind of computer equipment, computer equipment include memory, processor and storage
On a memory and the computer program that can run on a processor, processor realize following steps when executing computer program:
The connection request at customer in response end establishes the long connection message channel between each client;The push of direct broadcasting room is monitored in real time
The release status of information obtains corresponding new edition pushed information when release status updates;It will be new by long connection message channel
Version pushed information is sent to each client, for updating the pushed information of each client.
When processor executes computer program in one of the embodiments, the connection request at customer in response end establish with it is each
The step of long connection message channel between a client, comprising: receive the connection request that each client is sent;According to connection
The client type carried in request determines the corresponding long connection type of each client;Established respectively according to long connection type with
Long connection message channel between each client.
The version of the pushed information of direct broadcasting room is monitored when processor executes computer program in one of the embodiments, in real time
This state, when release status updates, before the step of obtaining corresponding new edition pushed information, further includes: according to connection request
The direct broadcasting room mark of middle carrying obtains the initial pushed information of corresponding direct broadcasting room;Initial pushed information is pushed to corresponding visitor
Family end;Wherein, initial pushed information is used to indicate the long connection message channel of client terminal start-up.
The step of obtaining corresponding new edition pushed information when processor executes computer program in one of the embodiments,
Later, further includes: fail to give notice the release status of the pushed information of direct broadcasting room to state labeled as update;Wherein, update is failed to give notice
State is to indicate that the pushed information of direct broadcasting room updates and do not push new edition pushed information also to client.
New edition is pushed by long connection message channel when processor executes computer program in one of the embodiments,
Information is sent to each client, after the step of updating the pushed information of each client, further includes: by direct broadcasting room
The release status of pushed information, which is changed to send, does not reply acknowledgement state;Wherein, sending and not replying acknowledgement state is to indicate to have pushed away
It send new edition pushed information to client, and does not receive the confirmation message of client return also.
By the release status of the pushed information of direct broadcasting room when processor executes computer program in one of the embodiments,
It is changed to after the step of acknowledgement state is not replied in transmission, further includes: the confirmation message for receiving client, by pushing away for direct broadcasting room
Deliver letters breath release status be changed to send replied acknowledgement state;Wherein, transmission has replied acknowledgement state expression and has received visitor
The confirmation message for new edition pushed information that family end returns.
By the updated fictitious assets rating Information of institute when processor executes computer program in one of the embodiments,
After the step of being pushed to client by long connection message channel, further includes: if being not received by client in preset time
For the confirmation message of new edition pushed information, then push new edition pushed information is repeated to client, until receiving client pair
In the confirmation message of new edition pushed information.
Pushed information includes fictitious assets data income when processor executes computer program in one of the embodiments,
Seniority among brothers and sisters, fictitious assets data consumption seniority among brothers and sisters or fictitious assets data give at least one of seniority among brothers and sisters.
In one embodiment it is proposed that a kind of computer equipment, computer equipment include memory, processor and storage
On a memory and the computer program that can run on a processor, processor realize following steps when executing computer program:
Connection request is sent to server, with the long connection message channel between foundation and server;Receive the new edition of server push
Pushed information;New edition pushed information is obtained by server when the release status of the pushed information of direct broadcasting room updates in real time;Benefit
Pushed information is updated with new edition pushed information.
The new edition pushed information of server push is received when processor executes computer program in one of the embodiments,
The step of before, further includes: receive the initial pushed information of the direct broadcasting room of server push;Started according to initial pushed information and is grown
Connection message channel.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, this is computer-readable
When instruction is executed by one or more processors, so that one or more processors execute following steps: the company at customer in response end
Connect the long connection message channel that request is established between each client;The version shape of the pushed information of direct broadcasting room is monitored in real time
State obtains corresponding new edition pushed information when release status updates;New edition pushed information is sent out by long connection message channel
It send to each client, for updating the pushed information of each client.
The connection request at customer in response end is built when computer-readable instruction is executed by processor in one of the embodiments,
The step of standing the long connection message channel between each client, comprising: receive the connection request that each client is sent;Root
The corresponding long connection type of each client is determined according to the client type carried in connection request;Distinguished according to long connection type
Establish the long connection message channel between each client.
The push letter of direct broadcasting room is monitored when computer-readable instruction is executed by processor in one of the embodiments, in real time
The release status of breath, when release status updates, before the step of obtaining corresponding new edition pushed information, further includes: according to even
Connect the initial pushed information that the direct broadcasting room mark carried in request obtains corresponding direct broadcasting room;Initial pushed information is pushed to phase
The client answered;Wherein, initial pushed information is used to indicate the long connection message channel of client terminal start-up.
Corresponding new edition pushed information is obtained when computer-readable instruction is executed by processor in one of the embodiments,
The step of after, further includes: by the release status of the pushed information of direct broadcasting room labeled as update fail to give notice state;Wherein, it updates
The state of failing to give notice is to indicate that the pushed information of direct broadcasting room updates and do not push new edition pushed information also to client.
It will be new by long connection message channel when computer-readable instruction is executed by processor in one of the embodiments,
Version pushed information is sent to each client, after the step of updating the pushed information of each client, further includes: will be straight
The release status of pushed information between broadcasting, which is changed to send, does not reply acknowledgement state;Wherein, sending and not replying acknowledgement state is table
Show and pushed new edition pushed information to client, and does not receive the confirmation message of client return also.
By the version of the pushed information of direct broadcasting room when computer-readable instruction is executed by processor in one of the embodiments,
This state was changed to after the step of acknowledgement state is not replied in transmission, further includes: the confirmation message for receiving client will be broadcast live
Between pushed information release status be changed to send replied acknowledgement state;Wherein, transmission has been replied acknowledgement state expression and has been connect
Receive the confirmation message for new edition pushed information of client return.
The updated fictitious assets of institute is arranged when computer-readable instruction is executed by processor in one of the embodiments,
After the step of row information is pushed to client by long connection message channel, further includes: if being not received by preset time
Client then repeats push new edition pushed information to client, until receiving visitor for the confirmation message of new edition pushed information
Confirmation message of the family end for new edition pushed information.
Pushed information includes fictitious assets number when computer-readable instruction is executed by processor in one of the embodiments,
At least one of seniority among brothers and sisters is given according to income seniority among brothers and sisters, fictitious assets data consumption seniority among brothers and sisters or fictitious assets data.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, this is computer-readable
When instruction is executed by one or more processors, so that one or more processors execute following steps: sending and connect to server
Request is connect, with the long connection message channel between foundation and server;Receive the new edition pushed information of server push;New edition pushes away
Deliver letters what breath was obtained by server when the release status of the pushed information of direct broadcasting room updates in real time;Utilize new edition pushed information pair
Pushed information is updated.
The new edition that server push is received when computer-readable instruction is executed by processor in one of the embodiments, pushes away
Deliver letters breath the step of before, further includes: receive the initial pushed information of the direct broadcasting room of server push;According to initial pushed information
Start long connection message channel.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.