Questions tagged [faye]

Faye is an easy-to-use publish-subscribe messaging system based on the Bayeux protocol. It provides message servers for Node.js and Rack, and clients for use in Node and Ruby programs and in the browser.

Faye is an easy-to-use publish-subscribe messaging system based on the Bayeux protocol. It provides message servers for Node.js and Rack, and clients for use in Node and Ruby programs and in the browser

359 questions
4
votes
1 answer

Is Faye compatible with all browsers?

I'm considering Faye for some real-time pub/sub to browser clients. I can't find any information about which browsers do and don't work with Faye.
tybro0103
  • 48,327
  • 33
  • 144
  • 170
4
votes
1 answer

Faye server logging

How to enable logging on Faye server? I am tying: Faye::Logging.log_level = :debug Faye.logger = lambda { |m| puts m } I am getting the following error: /faye.ru:5:in `block in
': undefined method `log_level=' for Faye::Logging:Module…
4
votes
1 answer

How can I find the number of current subscriptions using PrivatePub and Faye in rails

I am using a ruby gem called PrivatePub and this uses Faye to offer PubSub messaging The PrivatePub gem offers a couple of view based helpers to subscribe / send a message to a particular topic. I am looking to extend PrivatePub to include an API…
RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
4
votes
1 answer

Private messages with Faye and Rails

I'm using the faye gem menitioned in the railscast allowing apps to push messages. Problem is it pushes messages to all chat clients that are open. I need them to be private. It's possible to get private messaging with faye but it's url based. For…
Alain Goldman
  • 2,896
  • 5
  • 43
  • 75
4
votes
1 answer

Faye ruby client publishing only once

I have a faye server (nodejs) running on localhost, and I am trying to setup a server side ruby client which needs to publish on the server on a regular basis. This is the code I am trying to use. (Please ignore the commented code to start with). I…
neeraj
  • 1,191
  • 4
  • 19
  • 47
4
votes
1 answer

How to properly test asynchronous faye server?

I am using the private_pub gem to have real-time functionality in my app. I feel really guilty, but I have dropped testing this app! In order to make sure everything works manually, I have to have two browsers open communicating with each other.…
Kites
  • 1,098
  • 9
  • 21
4
votes
2 answers

Rails + Faye + Apache: Moving Faye from Thin to Passenger

Deploying with our main app on Passenger and Faye on Thin is currently working. But I'm having some issues transitioning from that set-up to Faye using passenger as well. It suggests here (https://github.com/faye/faye-websocket-ruby) that I can run…
Morgan
  • 1,438
  • 3
  • 17
  • 32
4
votes
1 answer

How to get Faye running on Heroku

I have an application running on Heroku and I have a messaging system in place. I've used the Faye gem, which has a Faye server to handle live messaging notifications. How can i get this Faye server to run in production on Heroku? It has it's own…
Sonny Black
  • 1,585
  • 4
  • 23
  • 41
4
votes
1 answer

Faye & Ruby or Node.js for scalability

I'm looking to prototype a web app that will use sockets to push a gentle stream of messages to mobile web app clients. I want to pick an architecture that will work for a large number of clients if/when it moves to production (so i dont have to…
markdrayton
  • 65
  • 1
  • 7
4
votes
3 answers

Faye server not started by foreman

I am trying to start faye with foreman. My procfile lookd like this: web: bundle exec rails server thin -p $PORT -e $RACK_ENV worker: bundle exec sidekiq redis: bundle exec redis-server faye: bundle exec rackup faye.ru -s thin -E production When I…
kpg
  • 7,644
  • 6
  • 34
  • 67
4
votes
0 answers

Faye - Retrieve last message for a given key

Is there a way to retrieve the last message faye broadcast for a given key? I know about the redis adapter, but have no idea if this is possible...
marcosbeirigo
  • 11,098
  • 6
  • 39
  • 57
4
votes
3 answers

Sure you're not looking for /faye?

I am following this tutorial to the letter : http://net.tutsplus.com/tutorials/ruby/how-to-use-faye-as-a-real-time-push-server-in-rails/ I have installed thin, faye and written the following in the faye.ru file : require 'faye' bayeux =…
jules testard
  • 193
  • 1
  • 9
4
votes
3 answers

Rails faye server won't start

I have an Rails application which I am attempting to include the faye ruby gem. I have installed faye with gem install faye and added a faye.ru to my root rails app. folder: require 'faye' Faye::WebSocket.load_adapter('thin') faye_server =…
phil
  • 65
  • 6
4
votes
1 answer

Faye how to calculate max numbers of clients

i'm using faye with ruby server for publish-subscribe messaging and it works well, but I have some doubts: how can i estimate the max numbers of clients that can receive messages simultaneously? It should be related at my message size but I don't…
Mattia Lipreri
  • 953
  • 1
  • 16
  • 30
4
votes
3 answers

Are there any full-featured tutorials or examples for faye on rails?

I have worked with faye on node before, but now want to add it to a rails app. I've found plenty of quick integration guides and have it up and running, but my current implementation is pretty hacky. I've been unable to find any longer tutorials or…
swider
  • 3,374
  • 2
  • 27
  • 40
1 2
3
23 24