"while UDP.get_available_packet_count() > 0" equivalent to websocket command?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kakcalu13

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.

Bump

Still waned to see if it is exist for websocket

kakcalu13 | 2022-04-04 12:57