forked from jshiffer/go-xmpp
Changed "Disconnect" to wait for the closing stream tag. (#141)
Updated example with a README.md and fixed some logs.
This commit is contained in:
committed by
Jérôme Sautret
parent
e62b7fa0c7
commit
94aceac802
@@ -40,6 +40,9 @@ type Transport interface {
|
||||
Read(p []byte) (n int, err error)
|
||||
Write(p []byte) (n int, err error)
|
||||
Close() error
|
||||
// ReceivedStreamClose signals to the transport that a </stream:stream> has been received and that the tcp connection
|
||||
// should be closed.
|
||||
ReceivedStreamClose()
|
||||
}
|
||||
|
||||
// NewClientTransport creates a new Transport instance for clients.
|
||||
|
||||
Reference in New Issue
Block a user