20 lines
451 B
Go
20 lines
451 B
Go
package main
|
|
|
|
import (
|
|
appConfig "github.com/xmpploadtesting/config"
|
|
xmppService "github.com/xmpploadtesting/services"
|
|
)
|
|
|
|
func main() {
|
|
|
|
// LOAD APPLICATION CONFIGURATION
|
|
appConfig.Load()
|
|
|
|
// Initialise XMPP service
|
|
xmppService.Init()
|
|
|
|
// Send online presence stanza
|
|
xmppServiceInstance := xmppService.Instance()
|
|
xmppService.SendOnlinePresenceStanza(xmppServiceInstance.XMPPClients[0].Client, xmppServiceInstance.XMPPClients[0].Config.Jid)
|
|
}
|