what kaa is using for publish subscribe
For clients who will be publishing only, or publishing and subscribing (a client can both publish and subscribe), it will need to initialize with both the subscribeKey and the publishKey. You only need to supply the publishKey to clients that will publish (send) data to your application over the PubNub network.