Closed psygames closed 2 years ago
https://github.com/endel/NativeWebSocket/blob/de70d566864d6f85cc007fb396af687bae867f50/NativeWebSocket/Assets/WebSocket/WebSocket.jslib#L250-L252
suggest code:
var length = lengthBytesUTF8(msg) + 1; var buffer = _malloc(length); stringToUTF8(msg, buffer, length);
https://github.com/endel/NativeWebSocket/blob/de70d566864d6f85cc007fb396af687bae867f50/NativeWebSocket/Assets/WebSocket/WebSocket.jslib#L250-L252
suggest code: