forked from jshiffer/go-xmpp
Add initial support for stream management
For now it support enabling SM, replying to ack requests from server, and trying resuming the session with existing Stream Management state.
This commit is contained in:
@@ -108,6 +108,10 @@ func (c *Component) Connect() error {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Component) Resume() error {
|
||||
return errors.New("components do not support stream management")
|
||||
}
|
||||
|
||||
func (c *Component) Disconnect() {
|
||||
_ = c.SendRaw("</stream:stream>")
|
||||
// TODO: Add a way to wait for stream close acknowledgement from the server for clean disconnect
|
||||
|
||||
Reference in New Issue
Block a user