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 \
  -u "I2E_JQ.g1YV7w:MNQUVxfVsvWIDTpn" \
  -H "Content-Type: application/json" \
  --data '{ "name": "chat", "data": { "msg": "hello via curl", "from": "John" } }'