Keeps component connection open

This commit is contained in:
Mickael Remond
2018-01-12 19:08:47 +01:00
parent b21fee420f
commit 24ac2c0526
4 changed files with 21 additions and 2 deletions

View File

@@ -88,6 +88,12 @@ func (c *Component) Connect(connStr string) error {
panic("unreachable")
}
// ReadPacket reads next incoming XMPP packet
// TODO use defined interface Packet
func (c *Component) ReadPacket() (xml.Name, interface{}, error) {
return next(c.decoder)
}
// ============================================================================
// XMPP packets struct