https://github.com/shime/faye-with-sinatra-example
Most basic example of using Faye with Sinatra.
https://github.com/shime/faye-with-sinatra-example
Last synced: 7 months ago
JSON representation
Most basic example of using Faye with Sinatra.
- Host: GitHub
- URL: https://github.com/shime/faye-with-sinatra-example
- Owner: shime
- Created: 2014-04-10T08:36:54.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-10T08:57:23.000Z (about 12 years ago)
- Last Synced: 2024-12-27T15:26:41.780Z (over 1 year ago)
- Language: Ruby
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Faye with Sinatra example
Get started with using [Faye](http://faye.jcoglan.com/) in [Sinatra](http://www.sinatrarb.com/) apps.
## Installation
Prepare environment with
```
git clone git@github.com:shime/faye-with-sinatra-example.git
cd faye-with-sinatra-example
bundle install
```
## Running example
Run the server with
```
rackup
```
Open up your favorite browser on [http://localhost:9292](http://localhost:9292) and
wait for messages...
Issue some messages to the client with
```
curl -d '' http://localhost:9292/publish
```
You should see greetings from the server.