mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2025-10-25 13:55:34 -07:00
Transports need to handle open/close stanzas
XMPP and WebSocket transports require different open and close stanzas. To handle this the responsibility handling those and creating the XML decoder is moved to the Transport.
This commit is contained in:
committed by
Mickaël Rémond
parent
25fd476328
commit
92329b48e6
@@ -16,7 +16,8 @@ import (
|
||||
func main() {
|
||||
config := xmpp.Config{
|
||||
TransportConfiguration: xmpp.TransportConfiguration{
|
||||
Address: "localhost:5222",
|
||||
// Address: "localhost:5222",
|
||||
Address: "ws://127.0.0.1:5280/xmpp",
|
||||
},
|
||||
Jid: "test@localhost",
|
||||
Credential: xmpp.Password("test"),
|
||||
|
||||
Reference in New Issue
Block a user