• Yes, it's sending the correct data by your code


    or the code below:

    this.socket.write(str(m8)); //  or this.socket.write(String.fromCharCode(m8­));

    They have the same performance.

    The m8 stores the char code, so we need to convert them to char by fromCharCode();

    But, the 'ws' is slowed down, per 230 bytes packet needs 600ms to be transfered , and all the 23KB datas need 66 seconds. Before we use UintArray, the total time is 85 seconds.

    Do you think we can find some way to enhance the 'ws' performance to transfer 23KB datas within 10 seconds?


Avatar for Aifer @Aifer started