Webpage instant chatting method and apparatus based on websocket
A webpage and server technology, applied in the computer field, can solve problems such as poor user experience, poor webpage chat tool experience, passive server, etc., to achieve the effect of improving user experience and reducing memory consumption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] see figure 1 The webpage instant chat method based on websocket proposed in this embodiment specifically includes the following steps:
[0057] Step S101: Select an unoccupied port number in the server, and execute a script command through the port number.
[0058] Step S102: modify the configuration in the webpage, where the configuration is a connection label corresponding to the server.
[0059] Step S103: Loading the websocket protocol in the webpage to realize full-duplex communication between the server and the webpage.
[0060] The above-mentioned steps will be described in detail below. In the above-mentioned step S101, the server is a special-purpose computer, which itself has multiple ports for connecting to various external devices that have a communication relationship with it. Especially when the server communicates with multiple external devices, the server needs to monitor each external device in real time through different ports. In this method of web...
Embodiment 2
[0080] see figure 2 , image 3 and Figure 4 , the present embodiment provides a webpage instant chat device based on websocket including: a service execution module 1, a webpage configuration module 2 and a communication module 3 connected in sequence, the service execution module 1 is used to select an unoccupied port number in the server, and, Execute the script command through the port number, the webpage configuration module 2 is used to modify the configuration in the webpage, wherein the configuration is the connection label corresponding to the server, and the communication module 3 is used to load the websocket protocol in the webpage to realize the full duplex between the server and the webpage communication.
[0081] Above-mentioned webpage configuration module 2 comprises: search unit 21 is used for searching the connection label corresponding to server in the webpage, and wherein, connection label comprises IP number and webpage port number, and the first modif...
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