tochie-facade/scenes/App.gd
2023-08-26 22:59:43 +05:00

18 lines
505 B
GDScript

extends Node
var _connection
func _service_discovery():
var iq := yield() as Xml.XmlElement
print(iq.as_string())
func _ready():
_connection = $Connections.establish_new_connection("poto.cafe", "veclavtalica", "-")
if _connection == null:
push_error("Connection failed")
if _connection.push_iq(_connection.domain, "get",
"<query xmlns='http://jabber.org/protocol/disco#items'/>",
_service_discovery()) != OK:
push_error("Connection failed")