Merge pull request #59255 from winterpixelgames/fix-js-websocket-close

Use 3001 instead of 1001 when destroying a Javascript websocket
This commit is contained in:
Fabio Alessandrelli 2022-03-25 05:20:13 +01:00 committed by GitHub
commit 1ed6ad939b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ const GodotWebSocket = {
if (!ref) {
return;
}
GodotWebSocket.close(p_id, 1001, '');
GodotWebSocket.close(p_id, 3001, 'destroyed');
IDHandler.remove(p_id);
ref.onopen = null;
ref.onmessage = null;