Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenoir/faye_example
Trying out Faye for Websockets using JRuby
https://github.com/kenoir/faye_example
Last synced: 24 days ago
JSON representation
Trying out Faye for Websockets using JRuby
- Host: GitHub
- URL: https://github.com/kenoir/faye_example
- Owner: kenoir
- License: gpl-3.0
- Created: 2014-07-08T21:44:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-08T21:55:56.000Z (over 10 years ago)
- Last Synced: 2024-11-08T21:59:34.860Z (3 months ago)
- Language: JavaScript
- Size: 340 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#JRuby Websockets using Faye
Uses:
- [Faye](http://faye.jcoglan.com/)
- [Puma](http://puma.io/)
- [EventMachine](http://rubyeventmachine.com/)##Setup
```sh
chruby jruby
```###Client (Browser)
Serves the static HTML containing the browser client, subscribes to Faye server
```sh
cd client
node server.js
```
Visit [http://localhost:8080/](http://localhost:8080/)###Server (Puma)
Provides the Faye server (using Puma)
```sh
cd server
bundle install
bundle exec puma config.ru -p 9292
```###Server-Client (EventMachine)
Provides a server-client to publish to browser clients via Faye server
```sh
bundle exec ruby client.rb
```