Integrated PubNub on mobile and server