Simple Chat Example

Simple chat (Jack)

Simple chat (Jill)

Both chat windows subscribe to messages sent through Ably. Messages will only appear in each of the chat windows once the message has been received by Ably.

Enter a new message to see how quickly a message is sent from from your browser to the Ably servers and back to your browser.

or publish a message using your terminal via the Ably REST API:

curl -X POST https://rest.ably.io/channels/complaint/messages \
  -u "I2E_JQ.kx8uLw:2dLfycIxjSO_ZTZO" \
  -H "Content-Type: application/json" \
  --data '{ "name": "chat", "data": { "msg": "hello via curl", "from": "John" } }'