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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:38:55+00:00 2026-05-21T02:38:55+00:00

I intend to use a Rails app to serve real-time data processed by a

  • 0

I intend to use a Rails app to serve real-time data processed by a node.js server and Socket.io.

In the Socket.io website, it says that:

If you won’t leverage Node.JS to serve
your files, make sure to set the
global WEB_SOCKET_SWF_LOCATION to
the location of the WebSocketMain.swf
file.

What does it means exactly if I use rails to serve the static files?

Also, from the FAQ:

I want to host the Socket.IO client myself:

If you’re not relying on Node.JS serving Socket.IO clientside
JavaScript files, make sure you set
the WEB_SOCKET_SWF_LOCATION right
after including socket.io.js with the
location of the WebSocketMain.swf
This is required in order for Socket.IO to find the .swf file required for Flash WebSocket.

However, I don’t quite get it.

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-05-21T02:38:56+00:00Added an answer on May 21, 2026 at 2:38 am

    WebSocketMain.swf file is used as part of the Flash based socket communication which is one of the fallback solutions when WebSocket transport is not available. This is a static file and by default it is served internally by socket.io. However if you intend to serve this file with your RoR application, you should set the WEB_SOCKET_SWF_LOCATION in order to socket.io being able to locate the WebSocketMain.swf file and use it in fallback case.

    For example if you are running standalone socket.io server, it is running lets say on port 8080 and is serving files from there. However if you add RoR, which runs on port 80, and you want to serve also socket.io static files with RoR, then you should instruct socket.io about the location of WebSocketMain.swf file since RoR is using different port or path to serve it.

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

Sidebar

Related Questions

I intend to use RADIX / MTRIE as my preferred data-structure for a routing
Hy, I was thinking that all my website will have use of cells, using
I'm working on a project that uses Hibernate and MySQL. I intend to use
I have this GenericRepository class that I intend to use as a base-class for
I've created a WCF service which I intend to use when sending data from
I intend to develop a system that is entirely based on modules. The system
I intend to build a small web site that will poll a third party
I'm creating a new plugin for a jruby on rails application that will eventually
The Scenario: I have an ASP.Net webpage which I intend to use for letting
I'm a php noob attempting my first shopping cart. I intend to use paypal

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.