diff options
Diffstat (limited to 'UI/PlayerLobby/lobby.gd')
-rw-r--r-- | UI/PlayerLobby/lobby.gd | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/UI/PlayerLobby/lobby.gd b/UI/PlayerLobby/lobby.gd index 6506097..4169478 100644 --- a/UI/PlayerLobby/lobby.gd +++ b/UI/PlayerLobby/lobby.gd @@ -45,7 +45,7 @@ func _ready() -> void: if multiplayer.is_server(): $KeepAliveTimer.start() $KeepAliveTimer.timeout.connect(func(): - Client.request(Client.game_lobby_url, [], HTTPClient.METHOD_POST, JSON.stringify({"keep-alive": Client.current_game_id})) + GameLobby.request_post("/keep-alive") ) @@ -92,13 +92,6 @@ func _on_start_button_pressed() -> void: func _on_cancel_button_pressed() -> void: multiplayer.multiplayer_peer.close() - await Client.request( - "%s" % [Client.game_lobby_url], - [], - HTTPClient.METHOD_POST, - JSON.stringify({"close": Client.current_game_id}) - ) - # TODO: if was host => Start. if was joined and connected from list => List get_tree().change_scene_to_file("res://UI/Start.tscn") |