https://github.com/ably/demo-sinatra-chat
Ruby Sinatra demonstration building a multi-user chat app
https://github.com/ably/demo-sinatra-chat
Last synced: 3 months ago
JSON representation
Ruby Sinatra demonstration building a multi-user chat app
- Host: GitHub
- URL: https://github.com/ably/demo-sinatra-chat
- Owner: ably
- Created: 2016-05-06T17:11:38.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2024-02-29T02:22:32.000Z (over 2 years ago)
- Last Synced: 2025-04-30T14:15:48.872Z (about 1 year ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 1
- Watchers: 5
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Ably Chat with server-side built in Sinatra example
_[Ably](https://ably.com) is the platform that powers synchronized digital experiences in realtime. Whether attending an event in a virtual venue, receiving realtime financial information, or monitoring live car performance data – consumers simply expect realtime digital experiences as standard. Ably provides a suite of APIs to build, extend, and deliver powerful digital experiences in realtime for more than 250 million devices across 80 countries each month. Organizations like Bloomberg, HubSpot, Verizon, and Hopin depend on Ably’s platform to offload the growing complexity of business-critical realtime data synchronization at global scale. For more information, see the [Ably documentation](https://ably.com/documentation)._
This chat app demo demonstrates the use of Ably to:
* Authenticate using token authentication URLs with identified clients
* Using presence
* Using connection state events
**Note: This demo is incomplete and is a work-in-progress**
### To run the demo
- `bundle install`
- `ruby ./app.rb`
- Open http://localhost:4567 with a browser and add a nickname
- Open http://localhost:4567 on another browser window, add a nickname and verify the presence of the previous nickname.
### Ably
[https://www.ably.io](https://www.ably.io)