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/exam/messages \
  -u "xVLyHw.fh1VRQ:J_w3Z0_S_FaY2Bj1" \
  --data 'data=hello+from+curl'