mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 05:20:06 +01:00
Fix "Parse message failed" error in WebRTC Signaling Demo Project (#1209)
This commit is contained in:
@@ -207,7 +207,7 @@ func _parse_msg(peer: Peer) -> bool:
|
||||
if typeof(parsed) != TYPE_DICTIONARY or not parsed.has("type") or not parsed.has("id") or \
|
||||
typeof(parsed.get("data")) != TYPE_STRING:
|
||||
return false
|
||||
if not str(parsed.type).is_valid_int() or not str(parsed.id).is_valid_int():
|
||||
if parsed.type is not float or parsed.id is not float:
|
||||
return false
|
||||
|
||||
var msg := {
|
||||
|
||||
Reference in New Issue
Block a user