Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Nahumus |
I use the godot StreamPeerTCP for a low level communication for my board game. Somewhy I get random noise from the peer, without even running my server… for example:
Here’s the code:
func _ready():
load_board()
func load_board():
socket = StreamPeerTCP.new()
if socket.connect_to_host("127.0.0.1", 5635) == OK:
wait_thread.start(self, "wait_for_start")
else:
pass #TODO
func wait_for_start(args):
while true:
level = socket.get_utf8_string(36)
print(level)
if len(level) == 36:
break