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

Ruby Fibers and faye

I have simple script with EventMachine, Fibers and faye require "faye" require "em-synchrony" require "hiredis" require 'redis' require 'redis/connection/synchrony' faye = Faye::Client.new 'http://localhost:9292/faye' redis =…
Falcon
  • 1,461
  • 3
  • 15
  • 29
3
votes
2 answers

private pub - publish from controller never works

Trying to implement a simple notification system based on private pub ( something like juggernaut ). by Ryan bates see: http://railscasts.com/episodes/316-private-pub Problem: Im unable to send a message true private pub from a controller Some…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
3
votes
1 answer

How to use Websocket (socket.io) with Ruby?

I need to implement WebSocket synchronization in our Rail project. MetaApi project's use Socket.Io as default support. Only found 2 projects (websocket-client-simple) and outdated with native socket.io. We try to implement this with Faye-Websocket…
Breno Perucchi
  • 873
  • 7
  • 16
3
votes
1 answer

faye working with rails3 app please help!

I am trying to get faye running on my production server but what do i use in the javascript_include_tag to get the faye.js file ? In development i use this : http://localhost:9292/faye.js But in production it does not work. Something like this ? or…
rick
  • 463
  • 5
  • 23
3
votes
1 answer

How can I send messages to specific client using Faye Websockets?

I've been working on a web application which is essentially a web messenger using sinatra. My goal is to have all messages encrypted using pgp and to have full duplex communication between clients using faye websocket. My main problem is being able…
3
votes
0 answers

Gem 'render_sync' doesn't update partial (Rails 4.2.4)

Using Rails 4.2.4, Faye 1.1.2, Thin 1.6.4, Render_sync 0.5.0. Did everything like in gem 'render_sync' docs (all necessary settings) and ran rackup sync.ru -E production, but got nothing: no auto partial update and no errors when I create new game.…
Almazzzzz
  • 31
  • 1
3
votes
1 answer

WebSocket and EventMachine timeout and error recovery

Using puma, faye-websocket-ruby and eventmachine, I am trying to implement a WebSocket server that is extended to support channels using redis.rb. Each client will supply a channel using a route currently in development as: "/C#{random number}". …
Richard_G
  • 4,700
  • 3
  • 42
  • 78
3
votes
2 answers

Where to start, implement long-polling in Faye for iOS

I'm using MZFayeClient (https://github.com/m1entus/MZFayeClient) using built in WebSocket. I need to implement long-polling technique. How to do it? Where to start? There isn't information (or enough information) on how to do it or if there an Faye…
Idan Moshe
  • 1,675
  • 4
  • 28
  • 65
3
votes
0 answers

Could not configure private pub on server connection being refused

I am trying to configure private pub on my server on an ip, same configuration was working earlier on different server , but not working on current. config/private_pub.yml development: server: "http://52.76.xx.xx:9292/faye" #server:…
Mahi L
  • 75
  • 1
  • 5
3
votes
1 answer

How to send binary file over Web Sockets with Rails

I have a Rails application where users upload Audio files. I want to send them to a third party server, and I need to connect to the external server using Web sockets, so, I need my Rails application to be a websocket client. I'm trying to figure…
BoomShadow
  • 912
  • 1
  • 18
  • 31
3
votes
2 answers

What does mean HIJACKED in server's log?

I have Faye ruby server as rack app. I starts it with Puma. In Puma's output I see the next 127.0.0.1 - - [10/Apr/2015 15:32:37] "POST /faye HTTP/1.1" HIJACKED -1 0.0059 What does it mean and how can I avoid this? If I use Thin I have nothing like…
user3309314
  • 2,453
  • 2
  • 17
  • 30
3
votes
0 answers

Find user's online status

I am using private_pub 1.0.3 gem which is build on top of faye and able to use it in my localhost. Now I want to implement functionality to check if user online status is online or offline using this gem. I am totally new to web sockets and found…
przbadu
  • 5,769
  • 5
  • 42
  • 67
3
votes
2 answers

Using rails sync gem with Faye and Thin in production mode on Heroku

I'm trying to set up the 'sync' gem to enable real time updates in my rails app. This uses Faye as a real time push service and thin as the webserver. I"m VERY new to this. So any advice is appreciated. I have this working on my local server, but…
user3711600
  • 853
  • 3
  • 12
  • 27
3
votes
1 answer

Live chat on Rails app through Faye but on Passenger with Apache

Our website is currently running our Rails web app on Passenger with Apache. Recently, there is a requirement to do live chatting. As such we are planning to deploy Faye by following this article…
jaxxie
  • 141
  • 8
3
votes
1 answer

Faye clustering multiple nodes NodeJS

I am trying to make a pub/sub infra using faye (nodejs). I wish to know whether horizontal scaling would be possible or not. One nodejs process will run on single core, so when people are talking about clustering, they talk about creating multiple…
neeraj
  • 1,191
  • 4
  • 19
  • 47