Improved connection handling
This commit is contained in:
@ -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...")
|
||||
|
||||
|
Reference in New Issue
Block a user