In order for our IoT lamp to interact with a client, we need to utilize PubNub’s two-way pub/sub capability.
In order for our IoT lamp to interact with a client, we need to utilize PubNub’s two-way pub/sub capability. This requires adding a listener to manage incoming messages and configuring a subscription to listen in on a specific channel.