xmppo / go-xmpp

Go XMPP Library (From Yasuhiro Matsumoto and based on the code from Russ Cox)
https://golang.org/
BSD 3-Clause "New" or "Revised" License
530 stars 167 forks source link

Implement XEP-0060 #119

Closed PapaTutuWawa closed 4 years ago

PapaTutuWawa commented 4 years ago

This PR is supposed to be the first in order to solve #118 by first implementing the ability to subscribe to PubSub nodes and request their data.

What I am not sure about is my choice to replace the big if-then-else block with an empty switch statement. In my further patch writing, it made the code more readable, but I can change it.

Also I am sure that I messed up somewhere as I had to rebase this multiple times and it seems as if my editor was not set to Golang.

mattn commented 4 years ago

Thanks!