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
7
votes
1 answer

How to implement websocket-based push service through Rails?

I'm building a messaging app like WhatsApp. My goal is to expose only REST API through Rails and "push notifications" to connected clients via websockets. So clients communicate with server only with the REST API. Only the server sends data through…
user1170896
  • 719
  • 1
  • 7
  • 19
6
votes
1 answer

How to detect disconnect event on a channel with Faye

I am trying to make a chat on my website looking like google talk. I want to manage the disconnect event. A user can disconnect on several way : By clicking the disconnect button (easy to push the event to his friends) By close his windows (I can…
Sebastien
  • 6,640
  • 14
  • 57
  • 105
6
votes
1 answer

Long-polling in Rails apps

I have an app that has a page on which user must see in relatively real-time how 2 steps are processed. Now this is done by ajax short-polling. I'd like to change it to some less server-heavy technique and I'm choosing between Faye gem and ajax…
Evgenia Karunus
  • 10,715
  • 5
  • 56
  • 70
5
votes
1 answer

Faye-rails, ngnix, passenger slow responce from faye

I want to create a simple chat. I am not a guru of server administration. So I have a question about ngnix and faye. I use ngnix + passenger for my production server. I have a droplet on digitalocean and want deploy my application on this. So for…
facetostool
  • 723
  • 1
  • 6
  • 12
5
votes
1 answer

Using Faye on Heroku in production mode

Rails 4.1.1 Ruby 2.1.1 The access point is https://pacific-savannah-8641.herokuapp.com Gemfile source 'https://rubygems.org' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.1' # Use mysql as the database for Active…
Lesha Pipiev
  • 3,251
  • 4
  • 31
  • 65
5
votes
1 answer

Faye WebSocket, reconnect to socket after close handler gets triggered

I have a super simple script that has pretty much what's on the Faye WebSocket GitHub page for handling closed connections: ws = Faye::WebSocket::Client.new(url, nil, :headers => headers) ws.on :open do |event| p [:open] # send ping…
randombits
  • 47,058
  • 76
  • 251
  • 433
5
votes
1 answer

Trigger the reloading of a page after a background job

I have a rails 4 application, that is doing a background calculus. So the user press a button and it launches a background job for the long calculus (using delay_job) and arrive on a waiting page. Despite the fact that the calculus is done…
5
votes
2 answers

Ruby on Rails -- Faye Framework -- private_pub

I'm using private_pub to implement a one-to-one chat-like application. Here is my story: as a user, I would like to receive a message when my partner leaves the chat – closes the window, etc. Looking through the Faye Monitoring docs here is my…
MarcBalaban
  • 75
  • 2
  • 7
5
votes
2 answers

PrivatePub is not defined error Rails 3.2 private pub

I want to use private pub gem in my rails application. I implement with railscast 316 After rails g private_pub:install my private_pub.yml file: development: server: "http://0.0.0.0:9292/faye" secret_token: "secret" test: server:…
5
votes
3 answers

Private pub on heroku

I am developing a chat application using rails 3.2.12 and a great gem called private pub, for which you can find a screencast here. It is built on top of faye and enables you to easily build real time chats by pushing messages. Now, deploying it on…
Dennis Hackethal
  • 13,662
  • 12
  • 66
  • 115
5
votes
2 answers

cannot load such file -- thin (LoadError) while running rackup private_pub.ru -s thin -E production command

I am referring to the pub railscast tutorial and have followed all steps properly but while running last command i.e. rackup private_pub.ru -s thin -E production to rackup the faye server I am getting following…
Deep Nishad
  • 181
  • 1
  • 2
  • 7
5
votes
2 answers

Faye on Heroku: Cross-Domain Issues

I'm currently hosting both my rails app and a faye-server app on Heroku. The faye server has been cloned from here (https://github.com/ntenisOT/Faye-Heroku-Cedar) and seems to be running correctly. I have disabled websockets, as they are not…
b.john.son
  • 73
  • 1
  • 5
5
votes
2 answers

How to know when a user disconnects from a Faye channel?

I'm trying to use Faye to build a simple chat room with Rails, and host it on heroku. So far I was able to make the Faye server run, and get instant messaging to work. The crucial lines of code that I'm using are: Javascript file launched when the…
Abramodj
  • 5,709
  • 9
  • 49
  • 75
4
votes
1 answer

How notify only specific users on a page using Faye?

I have a question. I was using faye, for updating part of page for all clients at this page. But I am woundering. How can I make updating part of the page only for specific users. In my case, I want to notify user about new message. But I dont know…
Pavel
  • 3,900
  • 6
  • 32
  • 41
4
votes
2 answers

faye ruby client is not working

I am using faye on my Rails 2.1 app. And after testing and fixing many things faye ruby client is not working. This is my server code. require 'faye' server = Faye::RackAdapter.new(:mount => '/faye', :timeout => 45) EM.run { thin =…
Nazar Hussain
  • 5,102
  • 6
  • 40
  • 67
1
2
3
23 24