This is for UDP from the actual example.
func _process(delta):
while socket.get_available_packet_count() > 0:
data = socket.get_packet().get_string_from_utf8()
stored_value = data
This is for UDP part, but what about websocket? I'm currently converting from UDP to Websocket. This is only one that halts me from convert.