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

WebSocket based client-side hardware information obtaining method

A hardware information and client technology, applied in the field of network communication, can solve the problem that hardware information cannot be modified, achieve high practical value and ensure security

Inactive Publication Date: 2016-12-28
INST OF ACOUSTICS CHINESE ACAD OF SCI +1
View PDF1 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to overcome the defect that the current WebSocket object does not include the attribute of obtaining client hardware information, and proposes a method for obtaining client hardware information based on WebSocket, which realizes WebSocket object obtaining client by calling the extended JavaScript interface. Hardware information, and this method has high security, ensuring that the customer's hardware information cannot be modified

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
  • WebSocket based client-side hardware information obtaining method
  • WebSocket based client-side hardware information obtaining method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

[0028] Such as figure 1 As shown, a method for obtaining client hardware information based on WebSocket, the method specifically includes:

[0029] Step 1) Extend the custom JavaScript interface to the general WebSocket object;

[0030] The general WebSocket object is all WebSocket objects created by the client;

[0031] Such as figure 2 As shown, the step 1) specifically includes:

[0032] Step 1-1) In the browser kernel, add a JavaScript interface attribute value or method to the general WebSocket object;

[0033] Step 1-2) define the function mapping relationship of the extended JavaScript interface attribute value or method in step 1-1) in the browser kernel, and map to the custom function inside the browser;

[0034] Step 1-3) in the internal custom function of step 1-2), call the function that the extended self-definition ...

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 WebSocket based client-side hardware information obtaining method. The WebSocket based client-side hardware information obtaining method comprises the steps that 1, a JavaScript interface function is expanded and customized for a commonly used WebSocket object; 2, a WebSocket object is created on the client-side, connection with a server is established, and the JavaScript interface function expanded and customized in the step 1 is called; 3, a Web engine kernel acquires corresponding equipment hardware information according to the interface function called by the WebSocket object and returns the information to the client-side; 4, the client-side includes the returned equipment hardware information in data messages and sends the information to a server; 5, the server processes the data messages and returns the equipment hardware information to the client-side; 6, the client-side continues to send the data messages to the server according to returned processing results till communication is completed; 7, after communication is completed, WebSocket connection is closed.

Description

technical field [0001] The invention belongs to the field of network communication, and in particular relates to a method for acquiring client hardware information based on WebSocket. Background technique [0002] With the maturity of HTML5 technology and the finalization of HTML5 specification, as an emerging technology and with the feature of supporting cross-platform, HTML5 is more and more welcomed by developers. As one of the key technologies of HTML5, WebSocket supports full-duplex communication and saves network bandwidth. It is also the preferred communication method for developers when developing Web application communication or even cross-platform communication. [0003] In the standard WebSocket protocol, the WebSocket object has relatively limited attributes and methods, such as: attribute value URL, methods send and close, and so on. In the process of developing a web application, sometimes there are more requirements for the information to be included in the s...

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/02H04L67/34H04L69/162H04L67/133H04L67/01
Inventor 胡琳琳肖伟民郭志川
Owner INST OF ACOUSTICS CHINESE ACAD OF SCI
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