Skip to content

npj/sse-goliath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time, Geolocated Chat with Server-Sent Events, EventMachine and Goliath

This is more of a proof-of-concept, or experiment than anything. Chats are pushed to the server along with latitude and longitude obtained using HTML5 Geolocation. The chats are then pushed out to all connected clients via EventMachine::Channel. The client listens for new chats, which arrive as server-sent events, and displays an info window on the map at the specified coordinates, along with the chat message.

To run it locally, just cd to the app directory and type ruby server.rb -sv. Then, point your browser to 0.0.0.0:9000. You'll probably want to use two computers to experiment, or your mobile device.

To see it in production, head to sse-goliath.herokuapp.com

Copyright © 2012 Peter Brindisi

About

Server-Sent Events experiment with Goliath

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published