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
2 answers

Faye: How to disable specific channel for publish by clients?

OH, HI I create chat app with server written with node.js and faye. clients subscribe /messages/new Messages going that way: client --[publish to /messages]--> server side client --[publish to /messages/new]--> all clients But if I'm a Anonymus…
voy
  • 1,568
  • 2
  • 17
  • 28
0
votes
1 answer

Faye Client for ActionScript3

I'm looking for a pub/sub messaging system to connect various applications I'm building, some of them will be iOS, other ones AIR/AS3 and maybe some openFrameworks. I found out Faye and it looks like really interesting. I've found libraries to…
Sr.Richie
  • 5,680
  • 5
  • 38
  • 62
0
votes
1 answer

how to access rails's session value in faye extensions?

how can I access session value in extensions? in that incoming and outgoing function. I'm using faye+thin, and my these code is under my project/faye.ru require 'faye' Faye::WebSocket.load_adapter('thin') bayeux =…
0day
  • 103
  • 1
  • 10
0
votes
1 answer

Adding custom fields to a subscription response using the faye ruby server

I'm trying to write a proof-of-concept chat application using faye (the chat example which is included in the distribution). In my proof-of-concept I want to send a full history of a chat channel when a client subscribes to a channel. My current…
bb-generation
  • 1,487
  • 12
  • 9
0
votes
1 answer

Faye + Rails + Sending message in controller

My application_controller.rb: class ApplicationController < ActionController::Base def broadcast(channel, &block) message = {:channel => channel, :data => capture(&block)} uri = URI.parse("http://localhost:9292/faye") …
Lesha Pipiev
  • 3,251
  • 4
  • 31
  • 65
0
votes
0 answers

Can't deploy Rails and Faye app to Heroku

I am making a chatting application using Ruby on Rails with Faye gem. The app works on localhost after I inserted "localhost:9292/faye.js" in the index.html and I run the following script on command line: rackup faye.ru -s thin -E production ruby…
masanorinyo
  • 1,098
  • 2
  • 12
  • 25
0
votes
1 answer

Rails: How to avoid AbstractController::DoubleRenderError when using live update / Faye?

I'm using Private Pub which is a gem built on top of Faye for live updating through my controller. I'm having trouble to be able to make a fallback for the Live Update Render, in case Faye server failed to serve. Is there anyway to go around this…
0bserver07
  • 3,390
  • 1
  • 28
  • 56
0
votes
1 answer

faye is not available on client browser for node js

I have created a sample application which is a chat server using nodejs + faye + epxress which is running fine on my local machine and I able to send message to server and publish it to client browser. But when I deployed my app on Openshift it is…
Pulkit
  • 3,953
  • 6
  • 31
  • 55
0
votes
1 answer

beforeunload event on page refresh in firefox

I am currently using faye for pubsub and am disconnecting the client on the beforeunload event.While it disconnects during tab close during page refresh it throws the following error : The connection was interrupted while the page was loading The…
krishnan
  • 3
  • 1
0
votes
1 answer

Faye unsubscribe not triggering anything on the server

I have a very simple Faye server running in node.js that looks like this: faye.on('subscribe', function(message, channel) { console.log('subscribed', channel); } faye.on('unsubscribe', function(message, channel) { …
user2040158
0
votes
0 answers

Faye PubSub Extension adding extra data field in messages

I am using Faye with Node.js (javascript) for a chat server and I am trying to implement 'notices' so that when one use subscribes, the server will send a message to the channel with a property __messageType = 'subscribe' The server code looks like…
user2040158
0
votes
1 answer

run faye (for node.js) on port 80 instead of 3000

My node server and Faye are configured to run on port 3000. I have set up the following in apache to make it run on port 80 through a reverseproxy: ServerAdmin spam@example.com ServerName server.com DocumentRoot…
Jorre
  • 17,273
  • 32
  • 100
  • 145
0
votes
0 answers

Faye and Nodejs Issue

Hi currently I'm trying to do a notification feature on a webapp and I decided to use Faye in order to make them live notifications. Now the feature works fine on my local computer, but when somebody else tries to connect to my network, they get a…
rdk1992
  • 406
  • 1
  • 5
  • 20
0
votes
1 answer

RoR how to submit form with :remote=>true and then execute javascript code

I want to be able to submit a form remotely (so the page does not refresh) and then have some javascript code get executed. Here's what I got so far