From 9b16a50e92ff12fa597d970295d8dc2b0b6ac9d5 Mon Sep 17 00:00:00 2001 From: Eccentric Date: Fri, 16 Feb 2024 01:35:12 +0000 Subject: [PATCH] WHY WONT IT ACCEPT THE STREAM INFO --- socket/jabber.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/socket/jabber.go b/socket/jabber.go index ce532cf..13840dc 100644 --- a/socket/jabber.go +++ b/socket/jabber.go @@ -63,16 +63,17 @@ func JabberSocketOnMessage(socket *Socket[JabberData], message []byte) { socket.Connection.WriteMessage(websocket.CloseMessage, websocket.FormatCloseMessage(websocket.CloseNormalClosure, err.Error())) return } + return } - aid.Print("jabber message not handled", parsed.Root().Tag) + aid.Print("jabber message handled") } func jabberStreamHandler(socket *Socket[JabberData], parsed *etree.Document) error { - socket.Write([]byte(``)) - socket.Write([]byte(``)) - socket.Write([]byte(``)) + socket.Write([]byte(``)) + // socket.Write([]byte(``)) + // socket.Write([]byte(``)) return nil }