SSE (server-sent event) specification-based message push method and device

A message push and message sending technology, applied in the computer field, can solve the problems of wasting bandwidth, high requirements of developers, and inability to guarantee real-time push of messages, and achieve the effect of saving bandwidth and low requirements of developers

Inactive Publication Date: 2017-09-19
GUANGZHOU HUADUO NETWORK TECH
View PDF5 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present application provides a message push method and device based on the SSE specification, which is used to solve the complex technology brought by the message push using the Websocket protocol in the prior art, and has high requir

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • SSE (server-sent event) specification-based message push method and device
  • SSE (server-sent event) specification-based message push method and device
  • SSE (server-sent event) specification-based message push method and device

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0049] In order to make the objectives, technical solutions, and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely in conjunction with specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.

[0050] figure 1 The message push process based on the SSE specification provided in the embodiments of this application specifically includes the following steps:

[0051] S101: The server establishes a long SSE connection with the terminal.

[0052] In practical applications, in order to better provide users with messages, pushing messages to users has gradu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention discloses an SSE (server-sent event) specification-based message push method and device. The method comprises the following steps that: an SSE long connection is built between a server and a terminal; whether a message to be pushed exits is monitored in real time; when it is monitored that a message to be pushed exits, the message to be pushed is sent to the terminal. According to the above method, since the SSE specification is a lightweight protocol, the SSE specification is not required to be deployed additionally compared with the Websocket protocol, at the same time, the technology of the SSE specification is relatively simple compared with that of the Websocket protocol, and requirements for developers are low; since the SSE specification supports one-way communication between the server side and the terminal, that is, as long as a new message exists at the server side, the new message can be pushed to the terminal, the terminal does not need to perform polling, and thus, the real-time push of the message can be ensured; and a connection between the server side and the terminal is a long connection, and therefore, bandwidth can be saved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for pushing messages based on the SSE specification. Background technique [0002] With the continuous development of network technology, it has become an indispensable part of people's daily life to obtain information from the Internet. In order to better provide users with information, pushing messages to users has gradually become an increasingly important way, such as , to push the news that happened that day to the user. [0003] At present, since existing terminal applications are usually developed based on html5, the existing message push method is mainly implemented based on html5. [0004] There are two main ways to push messages. One is to use the Websocket protocol to push messages to the terminal in real time when the messages on the server end change. The other is to use short connection polling, that is, The terminal will send an up...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08H04L29/06
CPCH04L67/146H04L69/162H04L67/55
Inventor 黄伟
Owner GUANGZHOU HUADUO NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products