Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oleander/secure_faye
A secure Faye server and client
https://github.com/oleander/secure_faye
Last synced: about 2 months ago
JSON representation
A secure Faye server and client
- Host: GitHub
- URL: https://github.com/oleander/secure_faye
- Owner: oleander
- Created: 2011-11-03T16:19:54.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-05-21T01:23:41.000Z (over 7 years ago)
- Last Synced: 2023-04-10T09:39:59.323Z (almost 2 years ago)
- Language: Ruby
- Homepage: https://github.com/oleander/secure_faye
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Secure faye
A secure faye server and client.
## Disclaimer
*Secure faye* isn't tested (enough) nor stable, and should therefore not be used in production.
## Client
``` ruby
SecureFaye::Connect.new.message("m").token("my-token").server("http://0.0.0.0:9292/faye").channel("c").send!
```## Server
Start server by creating a file called `config.ru` using this code.
``` ruby
require "secure_faye/server"
unless ENV["FAYE_TOKEN"]
abort("You must specify a FAYE_TOKEN.")
endrun SecureFaye::Server.new.instance
```Start the server by running `FAYE_TOKEN=my-token rackup config.ru -s thin -E production`.
## Not enough?
If this isn't enough, try Ryan Bate's [Private Pub](https://github.com/ryanb/private_pub) gem.
## How to install
*Secure faye* isn't on Rubygems *yet*, but you can easily require it in you Gemfile.
``` ruby
gem "secure_faye", git: "git://github.com/oleander/secure_faye.git"
```## Requirements
*Secure faye* is tested in *OS X 10.7.2* using Ruby *1.9.2*.
## License
*Secure faye* is released under the *MIT license*.