mirror of https://github.com/godotengine/godot
Use 3001 instead of 1001 when destroying a websocket.
This commit is contained in:
parent
756178d342
commit
b659cfbd53
|
|
@ -135,7 +135,7 @@ const GodotWebSocket = {
|
||||||
if (!ref) {
|
if (!ref) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GodotWebSocket.close(p_id, 1001, '');
|
GodotWebSocket.close(p_id, 3001, 'destroyed');
|
||||||
IDHandler.remove(p_id);
|
IDHandler.remove(p_id);
|
||||||
ref.onopen = null;
|
ref.onopen = null;
|
||||||
ref.onmessage = null;
|
ref.onmessage = null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue