summaryrefslogtreecommitdiff
path: root/client/multiplayer.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/multiplayer.gd')
-rw-r--r--client/multiplayer.gd4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/multiplayer.gd b/client/multiplayer.gd
index 7e05e759..57031221 100644
--- a/client/multiplayer.gd
+++ b/client/multiplayer.gd
@@ -29,8 +29,10 @@ var socket := WebSocketPeer.new()
func _ready():
print("Multiplayer connect");
- socket.connect_to_url(Global.server_url)
socket.inbound_buffer_size = 1024 * 1024 * 4
+
+func connect_to_url(url):
+ socket.connect_to_url(url)
connected = true
func _notification(what):