Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions networking/webrtc_signaling/client/ws_webrtc_client.gd
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func send_answer(id: int, answer: String) -> Error:

func _send_msg(type: int, id: int, data: String = "") -> Error:
return ws.send_text(JSON.stringify({
"type": type,
"id": id,
"type": str(type),
"id": str(id),
"data": data,
}))
2 changes: 1 addition & 1 deletion networking/webrtc_signaling/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The protocol is text based, and composed by a command and possibly
multiple payload arguments, each separated by a new line."
config/tags=PackedStringArray("demo", "network", "official")
run/main_scene="res://demo/main.tscn"
config/features=PackedStringArray("4.2")
config/features=PackedStringArray("4.3")

[debug]

Expand Down
4 changes: 2 additions & 2 deletions networking/webrtc_signaling/server/ws_webrtc_server.gd
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Peer extends RefCounted:

func send(type: int, id: int, data: String = "") -> void:
return ws.send_text(JSON.stringify({
"type": type,
"id": id,
"type": str(type),
"id": str(id),
"data": data,
}))

Expand Down