We should probably have this in a new thread, but anyway :)
When you get disconnected the server will "remove" all subscriptions, so when you get back you have to create new subscriptions. Personally I like RPC better since it is less overhead in the communication and you can instead send messages based on the state of each client (kind of pub/sub with rpc).
An issue with pub/sub is when you want to receive messages directly after the connection is open, but the subscriptions is not yet bound on the server. You will then risk to miss data you send your self with pub/sub.
There is a callback for telling you that the subscription is registered in the server. See
http://xsockets.net/docs/4/javascript and the section about "how to know when the subscription is ready"
I would consider using the "PersistenProperty" attribute instead so that state will be stored between connections and can then be used to target clients.
It might be wrong for you since I do not know what you are doing, but I would probably use that, maybe in combination with the IOfflineQueue plugin to not miss anything that was sent while I was away.
A bit of topic though...