Improved connection handling

This commit is contained in:
2024-01-21 01:21:58 +01:00
parent 1f73d22cd6
commit b01ae8543b
7 changed files with 65 additions and 13 deletions

View File

@ -14,7 +14,7 @@ func send_login():
var buffer := StreamPeerBuffer.new()
buffer.put_8(Packet.LOGIN)
buffer.put_data(JSON.stringify(["username", "password"]).to_utf8_buffer())
buffer.put_data(JSON.stringify(["user1", "password"]).to_utf8_buffer())
%Client.socket.put_packet(buffer.data_array)
print("[Client] Connecting...")