Ably Realtime - Custom environment example

A simple subscribe & publish to a channel example using a custom environment with custom fallback hosts. See more Ably examples.



or publish a message from our REST API in your console:
curl -X POST https://environment-example-rest.ably.io/channels/jsbin/messages \
    -u "xVLyHw.6Y8xaw:QaZhA11cddXxBebjwD6N4MmK-lL-0k_O_e1EsBrr52k" \
    -H "Content-Type: application/json" \
    --data '{ "name": "alert", "data": "hello curl" }'