Server to Server & pubsub support to Smack

Guys:

I have not dived yet into Smack to check out pubsub support, but wanted to ask:

can you cobine the use of smack client library along with server-to-server implementation? or is it pretty much restricted to cleint to server?

thanks.