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

Any options other than Faye for a real-time activity feed?

I would like to integrate a live activity feed in my rails app to show what other Users have recently done, and I'm wondering if there are any options other than running Faye (which seems to add a layer of complexity that I'm not running to…
Yoni
  • 11
  • 1
  • 4
0
votes
1 answer

Faye: big delay in http post request

I have this code in Faye rackup script: faye_server = Faye::RackAdapter.new(:mount => '/faye', :timeout => 45) faye_server.add_extension(ServerAuth.new) server_uri = URI.parse(BacklinkHealth::FAYE_SERVER) faye_server.on(:subscribe) do |client_id,…
davidhq
  • 4,660
  • 6
  • 30
  • 40
0
votes
1 answer

Does Faye work on the iPad

I've been playing with Faye and have gotten a test rails application to work on my computer's browser (Chrome 30.0.1599.101), but when I tried to access the same page on my iPad the messaging seemed to be broken. As far as I can tell, it seems that…
Tyler DeWitt
  • 23,366
  • 38
  • 119
  • 196
0
votes
1 answer

Handling WebSocket connections in Rack

The readme for faye-websocket-ruby has the below example. What does the line of code p [:close, event.code, event.reason] do and what does p mean there? Also what does ws.rack_response do and why is it necessary? # app.rb require…
user782220
  • 10,677
  • 21
  • 72
  • 135
0
votes
0 answers

Faye message publication delay

I'm using a rails application with faye server for pub/sub (private_pub, faye 1.0, puma server) on VMWare Ubuntu 12.04 instance. Everything is OK when instance is running on PC (or app deployed to the server), but on laptop every message publication…
Resure
  • 436
  • 7
  • 17
0
votes
1 answer

Rails way to put localhost in include tags and javascript

I've set up a rails app with faye. It includes the following code parts: applications.html.haml: = javascript_include_tag "http://localhost:9292/faye.js" discussions.js: $(function() { var faye = new Faye.Client('http://localhost:9292/faye'); …
Barna Kovacs
  • 1,226
  • 1
  • 14
  • 35
0
votes
1 answer

Async responses with faye on rails or node.js

I am interested in hearing some thoughts about a problem which I have to solve. I have a web application with a list of entries and I need to call different web services (e.g. twitter and youtube) for each entry in order to "resolve" an item. The…
dc10
  • 2,160
  • 6
  • 29
  • 46
0
votes
1 answer

Any additional considerations when using Faye in a Node.js cluster?

We're planning to run an Express-based server on Node.js in "cluster mode" using Node.js' cluster support. So there will be 1 master process and 'n' (where 'n' is calculated based on the number of CPUs) child processes running on a single machine.…
bjlevine
  • 873
  • 1
  • 9
  • 23
0
votes
1 answer

Call model method in javascript

This is my model in Ruby on Rails 3 project: class Faye < ActiveRecord::Base def faye_chatroom_token_id a = Faye.find_by_sql("SELECT userid FROM chat WHERE id = #{current_profile.id}") Digest::MD5.hexdigest(a.first) end end I need to…
Kurt Russell
  • 225
  • 1
  • 3
  • 15
0
votes
1 answer

POST to controller action in node and trigger websocket connection to client

New to node and websockets, I'm trying something to create something unlike the typical game or chat app. I need to be able to post some variables to an action, perform some lookups and then connect to the client with the found vars. I genuinely…
simonmorley
  • 2,810
  • 4
  • 30
  • 61
0
votes
1 answer

faye authentication with token

I am working with faye messaging system and I want to add authentication! I worked my way through the website and followed the tutorial. On the Client I have an extension for outgoing Messages: var droneFaye = new faye.Client("/faye", { …
user1354743
  • 407
  • 3
  • 7
  • 20
0
votes
1 answer

How to share an array between two classes that inherit from different classes

I've got a Rails application with a PubSub Server (Faye) as middleware.. I've got the usual Rails-structure for Models, Views and Controllers, and I've got some controllers for my Socket-channels.. (Provided by FayeRails) The problem: I need to…
Tim Baas
  • 6,035
  • 5
  • 45
  • 72
0
votes
1 answer

Production private_pub - 401 Unauthorized Error

I've been testing with private_pub/faye in development and UAT for a while now, without any issues. When I moved the code to production though I'm getting an error as soon as I go to the page that uses private_pub for a chat interface. I'm not…
Planty
  • 112
  • 7
0
votes
1 answer

Rails application with pusher/faye

Iv'e been asked to make an app like this one: http://www.dealcent.com/ Im having trouble figuring out how to make the bids update, i think that i could use something like pusher or faye (http://pusher.com/ or http://faye.jcoglan.com/) and subscribe…
Rodrigo Zurek
  • 4,555
  • 7
  • 33
  • 45
0
votes
1 answer

How do I know If IOS App in background using faye server

I have been implementing Faye for our IOS chat application. Since I don’t know much about the IOS side, I am little bit confused. Every thing works fine but my client asks me to check if IOS app has received the push message but as far as Faye is…
Braham Shakti
  • 1,408
  • 4
  • 22
  • 39