go-xmpp/_examples/xmpp_pubsub_client
remicorniere 928c1595ef
Merge pull request #148 from remicorniere/ResultSetsRework
- Changed IQ stanzas to pointer semantics
- Fixed commands from v 0.4.0 and tests
- Added primitive Result Sets support (XEP-0059)
- Tests for Result sets are not implemented yet. Result sets seem to be fairly unused across servers and is a little weird to test without a specific implementing XEP like XEP-0313; because the implementations are different across XEPs. Therefore, as 313 is coming, I'll update the tests for XEP-0059 with it.
2020-01-31 11:18:36 +00:00
..
README.md Update README.md 2020-01-20 12:24:01 +01:00
xmpp_ps_client.go - Changed IQ stanzas to pointer semantics 2020-01-31 11:48:03 +01:00

PubSub client example

Description

This is a simple example of a client that :

  • Creates a node on a service
  • Subscribes to that node
  • Publishes to that node
  • Gets the notification from the publication and prints it on screen

Requirements

You need to have a running jabber server, like ejabberd that supports XEP-0060.

How to use

Just run :

    go run xmpp_ps_client.go