Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8081901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:53:30+00:00 2026-06-05T16:53:30+00:00

I am using Faye in a rails application and I’m encountering a very weird

  • 0

I am using Faye in a rails application and I’m encountering a very
weird behavior where, if faye gets to subscribe before all assets are served (that is,
after $(document).ready() is called but while the spinner in your browser is running)
then faye will block the browser in “loading” mode (as in, the spinner never stops).

I believe I am using websockets and not long polling, although I’m not sure how to be
certain. I do see in faye’s log, when enabling debug messages referring to websocket:

2012-06-12 20:16:56 [DEBUG] [Faye::RackAdapter] Received via WebSocket[hybi-13]: [{"channel":"/meta/connect","clientId":"7w5vwypdaudnp9o64qwsb13om","connectionType":"websocket","id":"6s"}]

The browser connects to a standalone thin server running

require 'faye'
require 'bundler/setup'

Bundler.require(:faye)

bayeux = Faye::RackAdapter.new(:mount => '/faye', :timeout => 25)
bayeux.listen(9292)

the command I’m using is

exec bundle exec rackup faye.ru -s thin -E production

I’m running faye 0.8

* faye (0.8.2)
* faye-websocket (0.4.5)

This is what I see in chrome

After 5 minutes I simply [Esc] and those show up, that faye.js is the script Faye serves, and it seems that each one of those files seems to correspond to each subscribe call.

Interestingly enough, after those 5 files there are blocks of 5 calls, starting every one minute.

enter image description here

Any help with this would be much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:53:33+00:00Added an answer on June 5, 2026 at 4:53 pm

    This is sort of a placeholder answer, in case someone else runs into something similar.

    I’ve found that I was using a Faye.Client in two different places, thus two connections were being setup to the faye server, this is something that faye doesn’t support (because it doesn’t need to). Removing the other faye client helped, I’m still seeing strange behavior sometimes, but that has certainly improved things a little bit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using FAYE and rails application and the only thing tha annoys me very
I am using Rails + Backbone + Faye to make a sample chat application.
I have project on rails 3 with multiplayer using Faye. The error block in
Currently im using PrivatePub(faye) in a rails app for chat but so far every
My application runs properly using Faye, Redis, Resque and other services, that I am
I am using faye on my Rails 2.1 app. And after testing and fixing
I'm used to start the Faye server on my local environment using sudo bundle
Using the Redis info command, I am able to get all the stats of
I'm using Faye for dispatching messages and it works well. But I want to
Using the nodejs v.6.7 with faye v.7.1 I am getting error /path/livestats/node_modules/faye0.7/faye.js:18 ID_LENGTH: <%=

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.