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 8945045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:09:35+00:00 2026-06-15T12:09:35+00:00

I have faye implementation in my rails application. The publish method works correctly when

  • 0

I have faye implementation in my rails application. The publish method works correctly when both browsers are on the same computer. When I access the application from another browser on another computer, it only works from client to server and does not publish to other clients. Also the publish event does not push to client when there are changes in the browser on the server.
Controller publish code:

def publish(channel, data)
    message = {
      :channel => channel,
      :data => data,
      :ext => {:faye_token => FAYE_OUTGOING_AUTH_TOKEN}
    }
    uri = URI.parse('http://localhost:9292/faye')
    Net::HTTP.post_form(uri, :message => message.to_json)
end

Command to run faye:

rackup faye.ru -s thin -E production -d

Example:
A: Server,
B: Client1,
C: Client2

A B and C are different computers in same network, and are all subscribed to the same channel.

  1. If I input data on B, A will see the data but C will not see the data until I refresh the page (Which is getting the data from db).
  2. If I input data on A, it does not get published to the other clients.
  3. If I input data on C, to a channel that only C and B are subscribed to, only C gets to see the data, and it is not published to B.

If A, B, and C were different browsers on the same computer, all the above cases would work.

I have ran this in Development mode, and have tried WEBrick, Unicorn, and Thin.

Any help would be appreciated.
Thanks.

  • 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-15T12:09:37+00:00Added an answer on June 15, 2026 at 12:09 pm

    To resolve the issue I replaced all instances of “localhost” with the address of the server on which Faye is running. This includes for subscribing clients to channels as well.

    Hope it helps,
    Cheers!

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

Sidebar

Related Questions

So I have a faye server and a rails web application. It all worked
I have an Rails application which I am attempting to include the faye ruby
I have project on rails 3 with multiplayer using Faye. The error block in
I have a Faye server running with ruby, and now, I need to send
I have simple script with EventMachine, Fibers and faye require faye require em-synchrony require
Have deployed numerous report parts which reference the same view however one of them
I have an application where there's some real-time chat. The chat is implemented using
Currently im using PrivatePub(faye) in a rails app for chat but so far every
Anywhere I look, rails apps that use faye end up storing the message in
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a

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.