Communication system building method and device based on websocket

A communication system and a technology for requesting information, which is applied in the field of communication, can solve problems such as complex application processing, and achieve the effect of high flexibility and strong transplantation ability

Inactive Publication Date: 2019-03-08
BANK OF CHINA
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the existing technology has certain requirements on the version of the server. For example, IBM's We

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
  • Communication system building method and device based on websocket
  • Communication system building method and device based on websocket
  • Communication system building method and device based on websocket

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0034] In view of the fact that the prior art has certain requirements on the version of the server, the embodiment of the present invention provides a method for building a communication system based on websocket, which no longer depends on the version of the application server, and is lightweight, flexible and capable of transplantation The advantages. The present invention will be described in detail below in conjunction with the accompanying drawings.

[...

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 invention provides a communication system building method and device based on websocket. The communication system building method based on the websocket comprises the following steps that a servercreates an app.js application program; the server quotes an express framework and an http framework in the aap.js application program; the server starts the http framework to monitor a port of the server; the server maps a url request and returns a request response, wherein the request response comprises an initial character string; a client enables a socket.io.js component; the client defines aninformation sending function and an information receiving function; the server quotes a socket.io framework in the app.js application program; the server replaces the initial character string with acharacter string on a page of the client; and the server defines a socket monitoring event in the app.js application program. According to the method and the device, the full-duplex communication application of the websocket is achieved through open source technologies such as NodeJS, Express and socket.io, and the method and the device do not depend on the version of an application server any more, and have the advantages of light weight, large flexibility and high transfer ability.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a method and device for building a communication system based on websocket. Background technique [0002] Websocket is a new protocol of HTML5, which realizes full-duplex communication between browser and server, can better save server resources and bandwidth, and achieve real-time communication. Since the advent of Websocket, the industry has not formed a unified specification. Each browser and application server manufacturer has its own implementation. Later, javaEE7 began to support websocket, and major application server manufacturers also began to support it. However, the existing technology has certain requirements on the version of the server. For example, IBM's WebSphere requires 8.0 or above, and Tomcat requires 7.0.5+. The application processing is relatively complicated. Contents of the invention [0003] The main purpose of the embodiments of the pres...

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/06H04L29/08G06F9/54
CPCG06F9/544G06F2209/541H04L67/02H04L69/162
Inventor 黄河峰
Owner BANK OF CHINA
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