Top "Actioncable" questions

Action Cable is an open source technology shipped to us with Ruby On Rails 5. It uses websockets instead of traditional HTTP protocol and allows 2-way asynchronious data transfer.

Request origin not allowed: http://localhost:3001 when using Rails5 and ActionCable

Having server issues with an app in Rails 5.0.0.beta2 trying to use ActionCable. Using localhost:3000 works fine, as that is …

ruby-on-rails ruby-on-rails-5 actioncable
ActionCable - Failed to upgrade to WebSocket in production

ActionCable doesn't work in production. Works well in development, but not in production. Running Nginx with Puma on Ubuntu 14.04. I …

ruby-on-rails ruby nginx ruby-on-rails-5 actioncable
Is RAILS_MAX_THREADS something that Puma will set and scale during build time , or should I set it?

I know Rails 5 ships with Puma (which we're using) and will look for RAILS_MAX_THREADS as an environment variable …

multithreading heroku ruby-on-rails-5 puma actioncable
ActionCable.server.broadcast from the console

I can use the following code in the controller but not in the console (both development environment). I'm using Rails 5.0.0.…

ruby-on-rails ruby-on-rails-5 actioncable
How to use ActionCable as API

I built a very simple app using Rails 5 beta 1 and ActionCable to show when users come online and let them …

ruby-on-rails api ruby-on-rails-5 actioncable
Send auth_token for authentication to ActionCable

module ApplicationCable class Connection < ActionCable::Connection::Base identified_by :current_user def connect #puts params[:auth_token] self.current_…

ruby-on-rails-5 actioncable
How do I find out who is connected to ActionCable?

I have seen ActionCable.server.open_connections_statistics, ActionCable.server.connections.length, ActionCable.server.connections.map(&:statistics), ActionCable.server.…

ruby publish-subscribe subscriptions ruby-on-rails-5 actioncable
ActionCable Not Receiving Data

I created the following using ActionCable but not able to receive any data that is being broadcasted. Comments Channel: class …

ruby-on-rails actioncable
Rails ActionCable error during websocket handshake

I'm trying to build a messaging app with Rails 5 ActionCable, but I'm getting the above error in the JS console. …

ruby-on-rails nginx websocket ruby-on-rails-5 actioncable
How do I get current_user in ActionCable rails-5-api app?

Why am I not able to retrieve current_user inside my channel or how should I retrieve current_user? What …

ruby-on-rails authentication actioncable