1. The back-end converts a long data into 64-bit binary, which is transmitted to the front-end through websocket. The front-end receives an ArrayBuffer object, reads the data in memory with getFloat64, and converts it into an integer, but it is found to be inconsistent with the data defined by the back-end.
2, for example, the value passed by the back end is 20000000001, and the ArrayBuffer, received by the front end is taken out with Int8Array to get an 8-bit signed integer [0,0,0,46,-112,-19,-48,1], and the value obtained is consistent with the binary provided by the back end.
3. Data conversion is as follows:
4ArrayBufferInt8ArrayFloat64Array: