Merge pull request #3728 from ChrisLR/patch-1

Update godot contrib README.md
This commit is contained in:
Griatch 2025-02-15 11:18:50 +01:00 committed by GitHub
commit 4921425883
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ This will connect when the Scene is ready, poll and print the data when we recei
extends Node
# The URL we will connect to.
var websocket_url = "ws://localhost:4008"
var websocket_url = "ws://127.0.0.1:4008"
var socket := WebSocketPeer.new()
func _ready():
@ -145,7 +145,7 @@ func _on_button_pressed():
extends Node
# The URL we will connect to.
var websocket_url = "ws://localhost:4008"
var websocket_url = "ws://127.0.0.1:4008"
var socket := WebSocketPeer.new()
@onready var output_label = $"../Panel/VBoxContainer/RichTextLabel"
@ -193,4 +193,4 @@ func _on_button_pressed():
func _exit_tree():
socket.close()
```
```