Added upload and download statistics

This commit is contained in:
2024-01-26 19:00:59 +01:00
parent 8370afd9a1
commit 252d55b30f
10 changed files with 54 additions and 6 deletions

View File

@ -32,7 +32,7 @@ func send_login():
var buffer := StreamPeerBuffer.new()
buffer.put_8(Packet.LOGIN)
buffer.put_data(JSON.stringify([Global.username, password]).to_utf8_buffer())
%Client.socket.put_packet(buffer.data_array)
%Client.send(buffer.data_array)
print("[%s] Connecting..." % Global.username)
func is_logged_in() -> bool: