Ably Pubnub Adapter example

In this example, we demonstrate how to use the Pubnub adapter to publish a message on a channel and subscribe to messages on that channel. See our Pubnub protocol adapter documentation for more details. As our adapters provide interoperability with Ably client libraries, you can for example publish a message via Ably's REST API and receive messages with a Pubnub client. Try the following in your console:

curl -X POST https://rest.ably.io/channels/activity/messages \
  -u "xVLyHw.O4ixQA:Hm9axDYqo6fQ-kWU" \
  --data 'data=hello+from+curl'