19 lines
360 B
GDScript
19 lines
360 B
GDScript
extends Panel
|
|
|
|
func _ready() -> void:
|
|
Websocket.connected_to_server.connect(connected_to_server)
|
|
Websocket.message_received.connect(message_received)
|
|
|
|
|
|
func connected_to_server():
|
|
pass
|
|
func message_received(data:Dictionary):
|
|
if data.is_empty():return
|
|
if !data.has("topic"):return
|
|
match data.topic:
|
|
|
|
pass
|
|
|
|
func _process(delta: float) -> void:
|
|
pass
|