Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A secure Faye server and client
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
Procfile
Rakefile
Readme.md
config.ru
secure_faye.gemspec

Readme.md

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

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.

require "secure_faye/server"
unless ENV["FAYE_TOKEN"]
  abort("You must specify a FAYE_TOKEN.")
end

run 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 gem.

How to install

Secure faye isn't on Rubygems yet, but you can easily require it in you Gemfile.

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.

Something went wrong with that request. Please try again.