• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

HTML5 How can I get the data of buffer_string type with H5?

XiaoMo

Member
I would like to ask when I use networking (network_socket_ws), if the data sent from H5 client to PC server, the server can read the data using buffer_read, but when I return data from server to client, I can't get the value of buffer_string using buffer_read.
If I change the client from H5 to PC (and change the connection method to network_socket_tcp), everything works fine, or if I change the data type from buffer_string to buffer_u8, it also works fine.
How can I get the data of buffer_string type with H5?
 

Attachments

Top