We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6b8c32 + f05b22c commit 760b352Copy full SHA for 760b352
modules/websocket/library_godot_websocket.js
@@ -58,8 +58,7 @@ const GodotWebSocket = {
58
return;
59
} else if (typeof event.data === 'string') {
60
is_string = 1;
61
- const enc = new TextEncoder('utf-8');
62
- buffer = new Uint8Array(enc.encode(event.data));
+ buffer = new TextEncoder('utf-8').encode(event.data);
63
} else {
64
GodotRuntime.error('Unknown message type');
65
0 commit comments