Remote Procedure Call is very powerful, and in combination with state RPC can replace PUB/SUB in a great way. It all depends on what you want to do.
XSockets supports both RPC and PUB/SUB.