Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Instant messaging method realized based on websocket

A communication method and communication server technology, applied in the field of instant communication, can solve the problems of multi-terminal data cannot be shared, and cannot transmit attachments, etc., and achieve the effect of strong real-time information, improved transmission efficiency, and enhanced user experience.

Pending Publication Date: 2021-10-29
中企云链(北京)金融信息服务有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem to be solved in the content of the present invention is to provide an instant messaging method based on websocket for the defects involved in the background technology, which greatly reduces resource consumption, solves the problems that multi-terminal data cannot be shared and attachments cannot be transmitted, and realizes cross-platform instant messaging

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The technical solution of the content of the present invention will be further described in detail below. Apparently, the described embodiments are only some of the embodiments of the present invention, rather than all of them. All other embodiments obtained by those skilled in the art without creative efforts are protected by the present invention. scope.

[0026] It should be understood that although the terms first, second, third etc. may be used herein to describe various elements, components and / or sections, these elements, components and / or sections should not be limited by these terms.

[0027] An instant messaging method based on websocket, including:

[0028] An instant messaging method based on websocket, including: building a websocket transfer server, connecting the client to the server, connecting the server to the communication server, receiving messages, message adaptation, and finally realizing message roaming among multiple platforms;

[0029] The ins...

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 discloses an instant messaging method realized based on websocket. The method comprises the following steps: establishing a websocket transit server, establishing a transit server basic framework, installing a transmission module through an npm packet manager, establishing communication by using the transmission module, and binding with a server and a port. The client is connected with the server; the server side is connected with the communication server, the transit server establishes connection with the communication server through a node service, multi-point connection of a user to the communication server is changed into one point, and a websocket forwards a message to the client side and receives the message; and when the webpage end establishes connection with the transit server, the mobile end establishes connection with the communication server, and the communication server performs data forwarding, storage and message synchronization in the middle to realize cross-platform data interaction. According to the method, the problem that instant messaging cannot be realized by multi-terminal cross-platform data is solved, invalid and repeated data forwarding is avoided, sub-protocol extension and data compression and encryption are supported, higher information real-time performance is achieved, and cross-platform instant messaging is realized.

Description

technical field [0001] The content of the present invention relates to the technical field of information processing, in particular to an instant messaging method based on websocket. Background technique [0002] Instant messaging is a terminal service that allows two or more people to exchange text messages, files, audio and video in real time using the Internet. It is the most popular communication method on the Internet at present, and various instant messaging softwares are also emerging in an endless stream; service providers also provide more and more abundant communication service functions. [0003] The currently widely used technology introduces the integration of third-party platforms. The third platform is based on the xmpp protocol, and xmpp is based on xml. It defines three roles, client, server, and gateway. Communication can occur bi-directionally between any two of the three. The server is also responsible for client information recording, connection manage...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/58H04L29/06H04L29/08
CPCH04L67/02H04L69/162H04L51/04
Inventor 姜勇杨雷崔帅
Owner 中企云链(北京)金融信息服务有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products