Questions tagged [websocket-rails]

Plug and play websocket support for ruby on rails.

Websocket-Rails

websocket-rails - Plug and play websocket support for ruby on rails.

Now with streaming HTTP support for improved browser compatibility

The Present

Start treating client side events as first class citizens inside your Rails application with a built in WebSocket server. Sure, WebSockets aren't quite universal yet. That's why we also support streaming HTTP. Oh, and if you don't mind running a separate process, you can support just about any browser through Flash sockets without changing a line of code.

The Future

The long term goal for this project is simple. Reduce the need to move application logic on to the client while still providing the same level of interaction and responsiveness users have grown to expect from a modern web application. We hope to isolate the responsibility of JavaScript to the presentation layer and keep business logic nicely organized on the server.

24 questions
0
votes
1 answer

why websocket-rails need to started as a standalone server to support non-eventmachine based web servers?

from websocket-rails wiki, websocket-rails need to started as standalone server when we use Phusion Passenger or Unicorn, but I found faye-rails do not need to do this. what's the difference between them ?
0
votes
0 answers

Websocket-Rails gem running as standalone timesout trying to connect to Thin on live server

I'm setting up this app that contains a chat module and everything is working fine on localhost. Now I am trying to connect to the server as a standalone service, but the connection state in the dispatcher is always 'connecting' until it finally…
Victor Ferreira
  • 6,151
  • 13
  • 64
  • 120
0
votes
0 answers

Websocket in Rails app on Heroku is not working

I added a chat functionality in my existing RoR app with the websocket-rails (https://github.com/websocket-rails/websocket-rails) gem and I'm testing it in production mode on Heroku. It works fine in localhost, but when I sent it to Heroku it is not…
Victor Ferreira
  • 6,151
  • 13
  • 64
  • 120
0
votes
1 answer

websocket-rails: Server emits http:// protocol; client expects ws:// protocol

From Using the JavaScript Client: Notice the lack of a protocol prefix on the server URL. Do not add http:// or ws:// to the URL that you pass to the new dispatcher. WebSocketRails will choose the best available transport for you and prepend the…
Jay Bienvenu
  • 3,069
  • 5
  • 33
  • 44
0
votes
1 answer

WebSockets in Rails : Do we have to create a new WebSocketController in our existing application while using the websockets?

I have a chat application here . I was going through the wiki of WebSockets . There the code is described in the ChatController like this : class ChatController < WebsocketRails::BaseController def initialize_session # perform application…
0
votes
1 answer

Websockets with Rails(Puma) - Error during WebSocket handshake: Unexpected response code: 200

I am trying to use websocket in my Rails4.1 application Here are some relevant code snippets: Gemfile: gem 'websocket-rails' gem 'puma' development.rb config.middleware.delete Rack::Lock I am starting the server locally as: bundle exec puma -p…
codeObserver
  • 6,521
  • 16
  • 76
  • 121
0
votes
0 answers

Calling websocket-rails from a ruby client

I have a pure ruby client where I want to send a message over a websocket connection. The websocket runs inside a rails application and I am using the websocket-rails gem ( https://github.com/websocket-rails/websocket-rails ) With the following code…
Orlando
  • 1,576
  • 2
  • 15
  • 20
0
votes
1 answer

Trigger/Subscribe to websocket-rails event from inside a rails runner

I have a Rails Application with websocket-rails gem. Inside my application there is a Daemon that I launch with rails runner MyDaemon.start I'm using websocket-rails Synchronization, so my config/initializers/websocket_rails.rb looks like…
Enrico Carlesso
  • 6,818
  • 4
  • 34
  • 42
-2
votes
1 answer

gem "websocket-rails" and its scalability

we are currently developing a chat (like facebook, with stored messages). at the moment, theres a minimum of 500 online users (its a dating website) and at the peak there is a max of 3000 users simultanously online. switching to websockets is "the…
Tim Kretschmer
  • 2,272
  • 1
  • 22
  • 35
1
2