Hi everyone, I was trying to establish a connection TCP connection to a client, but I keep getting a
Invalid call. Nonexistent function 'is_connected_to_host' in base 'StreamPeerTCP'
error. I have no idea why this happens, this function definitely exists because it's in the docs, yet here I am. Also, if I comment the call, I get another error Invalid call. Nonexistent function 'remove' in base 'Array'.
when trying to remove an element from an array, which is suspicious to say the least. I'll link the code snippet in case it's necessary
for client in connection:
if !client.get_status() == 0:
print("Client disconnected \n")
var index = connection.find(client)
connection.remove(index)
peerStream.remove(index)