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

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 tha

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

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

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
Owner INST OF ACOUSTICS CHINESE ACAD OF SCI
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