Bidirectional real-time communication system and method based on WebSocket and message queue
A message queue and real-time communication technology, applied in the field of communication, can solve the problem of being unable to locate the location of the client WebSocket service
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] refer to figure 1 , is a two-way real-time communication system based on WebSocket and message queue disclosed in the present invention, including a server 10, a client 20, an identification module 30 and a classification data set 40. The server 10 is deployed in a cluster and used to establish a WebSocket service, and the client 20 is used to initiate a WebSocket connection to the server 10 .
[0065] refer to figure 1 , the server 10 includes a marking module 11 and an indexing module 12 . The marking module 11 is used for establishing a unique identifier for the client 20 when the client 20 is connected to the server 10 . The indexing module 12 is configured to establish an index according to the unique identifier established by the marking module 11, and the index is used to locate the position of the client 20 in the WebSocket service. When the server 10 receives the message published by the message producer from the subscribed message queue in the form of messa...
Embodiment 2
[0077] refer to image 3 , is a method for realizing two-way real-time communication based on WebSocket and message queue disclosed in the present invention. The method for realizing two-way real-time communication based on WebSocket and message queue is based on the system for realizing two-way real-time communication based on WebSocket and message queue in Embodiment 1. Include the following steps:
[0078] S10, establishing a WebSocket service through the server 10. Specifically, the server 10 is deployed in a cluster.
[0079] S20, establishing a WebSocket connection between the client 20 and the server 10.
[0080] S30. Establish a unique identifier for the connected client 20 through the server 10.
[0081] S40. Establish an index for locating the location of the client 20 in the WebSocket service according to the corresponding unique identifier.
[0082] S50. Receive the message published by the message producer from the subscribed message queue through the server 1...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com