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

node.js rested json

We're sending out a chunk of json to node/faye and having some issues with nested arrays. Here is the json: { "event_189420": { "num_horses": 11, "sport_name": "horse", "conditions": "", "ort": 13, …
phil
  • 4,668
  • 4
  • 33
  • 51
0
votes
1 answer

Why use Faye for chat and not use Ajax (rails)

I am not sure what are the advantages for using Faye or some other push system and not use Ajax for it. Specifically I mean for implementing chat and notification functionality. If I make a chat message model, and in my post ( which has many chat…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
0
votes
3 answers

Basic private chatting system with privatepub gem

I have been trying for over a month now to figure out how to setup private conversations with users on my site and not just group conversations which i know how to do wit faye or privatepub gem. So my question how do i create a channel that tow…
Uchenna
  • 4,059
  • 6
  • 40
  • 73
0
votes
2 answers

Disabling websockets on a faye client (using private_pub)

I am using private_pub which is a wrapper for faye https://github.com/ryanb/private_pub I wan't to disable websockets on the client side, so faye will fall back to polling, because my production environment doesn't support websockets. It is advised…
Vall3y
  • 1,181
  • 8
  • 18
0
votes
1 answer

How Faye achieves cross-domain (XDR) pub/sub?

Faye supports cross-domain subscription. Here is an excerpt from their docs: Cross-domain operation Faye clients and servers transparently support cross-domain communication, so your client can connect to a server on any domain you like…
Uzbekjon
  • 11,655
  • 3
  • 37
  • 54
0
votes
2 answers

Faye, Rails and Net:HTTP end of file reached

I am trying to accomplish the following task: as soon a post is approved on the site, people on this site will be informed of that. To solve this I am using Faye, and publishing on the channel on my method approve. My application has only one…
Eduardo
  • 4,282
  • 2
  • 49
  • 63
0
votes
1 answer

PrivatePub & Faye-Websocket not working

Just recently my private_pub setup stopped working. I'm not sure why this is because I find it hard to diagnose the problem with the following error: [ERROR] [Faye::RackAdapter] input must be a string or IO Here's a full stacktrace: 2012-04-18…
nicolai86
  • 47
  • 3
0
votes
3 answers

Implementing chat in Rails

I am trying to implement a chat module in my rails application. I looked into this railscast Faye tutorial. More through the tutorial, Ryan mentions about broadcasting the messages but what I want is more like private conversations between the…
Rahul
  • 44,892
  • 25
  • 73
  • 103
-1
votes
2 answers

See and talk to your currently online users on your site in a Ruby on Rails 3 application

I have a Ruby on Rails 3 application, and I want to be able to see a list of who is currently online. For example user1, IP address, and country. I then want to be able to open a chat / push messages to this user until they leave my site. How can I…
rick
  • 463
  • 5
  • 23
-1
votes
2 answers

Adding external javascript to Ionic 2 project

Lets say I have this foo.js file where I declared a variable, a function and a class. It is not in the project yet. Now assume I want to use this variable, class and function in my home.ts method, or just make it globally available (to use in a…
Victor Ferreira
  • 6,151
  • 13
  • 64
  • 120
-1
votes
1 answer

Unable to use current_user.id in faye extension

I am using devise and faye. and I want to track all online users. so i thought of including a faye extension. in faye/faye_current_user.rb . when i am using current_user.id in faye_current_user.rb it is throwing undefined variable error. If you…
Aahlad
  • 141
  • 5
  • 14
-1
votes
1 answer

Net::HTTP - How can I open a link with adress?

I need to open this link with Net::HTTP: "http://localhost:9292/something" Terminal: http = Net::HTTP.new("http://localhost",9292) => # How can I open this link, any idea?
Kurt Russell
  • 225
  • 1
  • 3
  • 15
-1
votes
1 answer

ruby faye server with scala client

I have a Faye server running with ruby, and now, I need to send notifications to a client in Scala, but scala can't handle Bayeux, only WebSockets. Is there a way to change my connection type from Bayeux to using websockets? Some conf. files I…
Luiz E.
  • 6,769
  • 10
  • 58
  • 98
-2
votes
1 answer

ruby/rails: push & chat server for android

Why another push server? Google C2DM does not work well in some regions. How to create a push server using ruby/rails? Well, it's my real question. I've been googled for a few days. Options: IMPP(OpenFire), Juggernaut, Faye, AndroidPn. It leads me…
1 2 3
23
24