Code cleanup
This commit is contained in:
25
main.go
25
main.go
@@ -13,29 +13,4 @@ func main() {
|
|||||||
xmppService.Init()
|
xmppService.Init()
|
||||||
xmppServiceInstance := xmppService.Instance()
|
xmppServiceInstance := xmppService.Instance()
|
||||||
xmppService.SendOnlinePresenceStanza(xmppServiceInstance.XMPPClients[0].Client, xmppServiceInstance.XMPPClients[0].Config.Jid)
|
xmppService.SendOnlinePresenceStanza(xmppServiceInstance.XMPPClients[0].Client, xmppServiceInstance.XMPPClients[0].Config.Jid)
|
||||||
|
|
||||||
// // Setup new xmpp client
|
|
||||||
// if client, err = xmpp.NewClient(config, router, errorHandler); err != nil {
|
|
||||||
// log.Panicln(fmt.Sprintf("Could not create a new client ! %s", err))
|
|
||||||
// }
|
|
||||||
|
|
||||||
// // Client connection
|
|
||||||
// if err := client.Connect(); err != nil {
|
|
||||||
// msg := fmt.Sprintf("XMPP connection failed: %v", err)
|
|
||||||
|
|
||||||
// fmt.Printf("Failed to connect to server. Exiting... %v", msg)
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
|
|
||||||
// onlinePresencePacket := stanza.NewPresence(stanza.Attrs{From: config.Jid, Type: stanza.StanzaType(stanza.PresenceShowChat)})
|
|
||||||
|
|
||||||
// // Send onlinePresence packet indefiletly delayed by DelayBetweenMeassges from configuration
|
|
||||||
// for {
|
|
||||||
|
|
||||||
// err = client.Send(onlinePresencePacket)
|
|
||||||
// log.Printf("Sending online presence stanza: %v", err)
|
|
||||||
// // Delay before sending another message
|
|
||||||
// time.Sleep(time.Duration(appConfig.AppConfig.GeneralOptions.DelayBetweenMassages))
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user