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
44
votes
5 answers

sending a javascript object through websockets with faye

Hi all I'm trying to send a javascript object through websockets: the faye-websockets documentation says: send(message) accepts either a String or a Buffer and sends a text or binary message over the connection to the other peer. server side I'm…
frx08
  • 4,222
  • 8
  • 37
  • 45
19
votes
1 answer

Confusion over choosing Faye or Rails 4 Actioncontroller::Live

I have already used Faye with Ruby On Rails, it's almost at 0 cost for me, because I'm running Faye over another server connected to my Rails App. However I have faced some problems like when a query takes too long on the Rails server, after a while…
0bserver07
  • 3,390
  • 1
  • 28
  • 56
17
votes
4 answers

Autorun the Faye server when I start the Rails server

I currently have Faye working with my Rails 3.0.9 application. However I have two separate tabs open in my terminal. One for the Faye server, and one for the Rails server. How can I integrate them and automatically run the Faye server when Rails…
ardavis
  • 9,842
  • 12
  • 58
  • 112
17
votes
1 answer

Websocket header missing

I'm using the 'faye' gem with Rails 3.2.13. In development I'm running faye on localhost:9292 and my app on localhost:3000. I'm able to activate pop-up windows with a curl request from the command line but I can't establish a connection from within…
DizzyDez
  • 215
  • 3
  • 7
16
votes
2 answers

Rails eventmachine not initialized evma_install_oneshot_timer

I'm using Rails 4.1.1, Thin 1.6.2, Redis 2.8.9 (with Hiredis driver), and faye-rails gem. I use faye-rails to subscribe to changes on a few models, and I use Redis for other (unrelated) stuff. When I tried to call create on a faye-observed model…
dvdchr
  • 734
  • 11
  • 26
12
votes
2 answers

Juggernaut/Faye vs. Pusher for a Heroku hosted web service?

If I understand correctly, Juggernaut is built on top of socket.io, and Faye competes with Juggernaut layer and socket.io layer combined. Recently Ryan Bates came up with a Faye wrapper called PrivatePub which makes it very easy to run Faye. But I…
Vlad
  • 8,038
  • 14
  • 60
  • 92
9
votes
3 answers

Starting thin server without the thin gem does not work

I am using ruby 1.9.3 and rails 3.2.2. Every time i use the thin server with private_pub gem it does not work i did rackup private_pub.ru -s thin -E production. I get the following…
Uchenna
  • 4,059
  • 6
  • 40
  • 73
9
votes
2 answers

Faye or Redis Pubsub

I thought I understood this technology, but maybe I don't. What's the difference between the two? Why would you choose one over the other? Usecase: ~Realtime updates.
user558957
9
votes
1 answer

Update Rails view with Faye from Database change (after_commit callback) on model

I am very puzzled and this is my first Faye or Pub/Sub implementation so please forgive me if this is a basic questions. I have not found answers anywhere else. Any help is appreciated. How can I call and update a Rails view page from a model…
Yuri
  • 1,261
  • 1
  • 11
  • 23
8
votes
1 answer

Rails pub/sub with faye

In a Rails app I've used Faye (Rack adapter) for push notifications (for chat). I want to use Faye for another use case (more push notifications) but I can't seem to figure it out. In my app a model can be created from a background job so I want to…
Seth Jackson
  • 539
  • 4
  • 16
8
votes
1 answer

Is Action Cable the same thing as Faye?

Implementing Web Sockets in my app I've become confused which gem is better. I found plenty of different opportunities, however, some are hard to distinct. Finally, I've chosen Action Cable (a Rails 5 native part) and Faye (appeared earlier and…
Alexander Gorg
  • 1,049
  • 16
  • 32
8
votes
3 answers

What to use for real-time chat application

Im developing a chat application just like omegle.com with some more features for my college project. I want to know which would be the best approach from following two and why:- NodeJS + Socket.io Rails + Faye I searched a lot on these two and…
amrinder007
  • 1,455
  • 1
  • 12
  • 13
8
votes
1 answer

easily integrate socket.io and rails

I am using rails for more than 2 years now,,now I am building a real time application which is simple social network ,using private_pub gem for commenting and notifications ,I read about nodejs and I am learning it for the 3rd week now ,nodejs is…
Remon Amin
  • 1,506
  • 2
  • 19
  • 44
7
votes
2 answers

How do I list active subscribers using Faye?

I'm using Faye for dispatching messages and it works well. But I want to retrieve the active connections for a given channel, and things behave a bit differently: See "list active subscribers on a channel". I want to show the list of current users…
jpemberthy
  • 7,473
  • 8
  • 44
  • 52
7
votes
1 answer

Replace Faye with rails 4 server side events? Faye VS rails 4 streaming?

Currently im using private_pub + faye to have some basic streaming in Rails 4 project. Would it be possible to replace faye and private_pub and use Rails 4 streaming ( server send events instead ?) Im just pushing data to the client and the client…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
1
2 3
23 24