Skip to content

pusher-community/sinatra-realtime-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra Realtime Server

An example server that responds to POST /messages requests and triggers Pusher events. Built to accompany the EmberJS Realtime Chat frontend.

Running the server

First, install all dependencies:

bundle install

Then create a .env file with your pusher credentials (see .env.example for keys).

Then run the app:

bundle exec ruby app.rb

And you can then POST to http://localhost:4567/messages.

curl http://localhost:4567/messages --data 'time=0&username=foo&text=bar'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages