Merge pull request #186

* Updated the xmpp.NewClient call in the README.md example to pass the config parameter as a pointer (&config) instead of a value.
This commit is contained in:
COD3HUNT3R
2025-09-29 19:11:55 +06:00
committed by GitHub
parent 9b815bbbcb
commit 784ff58cc2

View File

@@ -124,7 +124,7 @@ func main() {
router := xmpp.NewRouter()
router.HandleFunc("message", handleMessage)
client, err := xmpp.NewClient(config, router, errorHandler)
client, err := xmpp.NewClient(&config, router, errorHandler)
if err != nil {
log.Fatalf("%+v", err)
}