Questions tagged [actioncable]

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. The best field of application for ActionCable is chat, single page applications and so on.

The Action Cable source is placed at Github.

To find code examples please check actioncable-examples repository.

849 questions
0
votes
1 answer

Can someone help me understand this NoMethodError error?

Hello guys thanks in advance for reading! I have tried to figure out this part for a while now: undefined method 'except' for "message: message":String Don't seem to be able to figure it out or find anything on google. Can someone please help out…
EVX
  • 304
  • 4
  • 17
0
votes
0 answers

Can someone give me some pointers on this actioncable error?

Hello Is there someone out there who can explain this error to me. It works on local machine and also when using heroku local but as soon as it's run on heroku production it gives me this error and i have done all the testing and also tried to get…
EVX
  • 304
  • 4
  • 17
0
votes
1 answer

Rails 5 ActionCable is crossing messages between development and production environments

I have my development server working at localhost:3000 and my production environment working ok at localhost:8001, both on the same machine. When I trigger any cable event in the development server, it impact on production environment too. Which is…
0
votes
0 answers

Live dashboard using actoncable

I'm trying to build a live updating dashboard in rails 5 with a actioncable. I was searching for some example which might guide me into implementing this but all i found was some chatting apps. I'm planning to use Google Charts. How would i be…
Akash Shah
  • 87
  • 10
0
votes
0 answers

(actioncable + jquery/coffeescript) Scroll to bottom when new div is created in chat

I built a chat using actioncable and I'm using this coffeescript. I basically want it to automatically scroll down whenever there's a new message (or div) in the chatbox. personal_chat.coffee jQuery -> if $('#current-user').size() > 0 …
Raidspec
  • 652
  • 1
  • 6
  • 13
0
votes
1 answer

ActionCable with attachment

I want to attach an image with my chat application. I have done with text chat but I am not able to send an attachment with actioncable. App.global_chat = App.cable.subscriptions.create { channel: "ChatRoomsChannel" chat_room_id:…
0
votes
1 answer

Actioncable: Puma caught this error: could not obtain a connection from the pool within 5.000 seconds

I'm getting this specific error when working on local (C9.io, haven't tried live yet). It happens when a lot of users are using my chat conversation. ALSO, i noticed that when i'm working for a while on the platform...the CPU level sky rockets. What…
Raidspec
  • 652
  • 1
  • 6
  • 13
0
votes
0 answers

Why did my Action Cable (Rails) messages stop being received on 1 client?

I've had Action Cable feeding information to signed-in users in my application for many moons, but recently my main development computer has had a problem. In all my environments, Production and Staging, the Action Cable functionality feeds the…
MingMan
  • 911
  • 1
  • 10
  • 31
0
votes
1 answer

Why does actioncable allow me to broadcast from my chat_channel.rb but not from my model file (chat.rb)

Basically, I am trying to get saves to the database to be broadcasted to all streamers. I know that the websocket stream is working because when I call App.call.speak() from the client, the received() function is triggered and I see an alert. I know…
alpalalpal
  • 1,583
  • 2
  • 12
  • 14
0
votes
1 answer

Use Action Cable to reflect changes in one project occurred due to another project

I am trying to implement Action Cable. I have previously worked with it though only the basics. I am now working on a project where the admin and the client section are two different projects. The database for both is same of-course. What i want is…
Aakanksha
  • 956
  • 1
  • 13
  • 26
0
votes
2 answers

Available options to fetch data from a server while on background in react-native

I want to make an app with react-native (that will probably be running on an android phone) that will fetch messages from a server and will send them as SMS to a contact. The thing is that it needs to keep watching for new messages from the server,…
0
votes
1 answer

What websock library does action cable use?

Does Rails action cable use a custom websocket library or does it use an open source one?
cool breeze
  • 4,461
  • 5
  • 38
  • 67
0
votes
1 answer

Implementing autosave in a Rails app with Websockets

I have a simple text editor and want to implement auto save so that any time a change is made to the text, it is immediately sent to the server. There are two ways to do this: Open a socket connection and send changes through the socket every…
Snowman
  • 31,411
  • 46
  • 180
  • 303
0
votes
1 answer

angular 2 subscription class not found

Very new to action cable and angular 2. I keep receiving this error, Subscription class not found: "MessagesChannel", when running the rails server. I am using ng2-cable to connect to my rails api. I am using angular 2 on cordova import { NgModule }…
RickD
  • 79
  • 13
0
votes
1 answer

How do you configure ActionCable to work with Heroku?

I'd like to configure ActionCable to work on Heroku. I've tried changing my cable.yml file into cable.yml.erb so I can evaluate ENV['REDISTOGO_URL'] like so: cable.yml.erb: development: adapter: async test: adapter: async production: …
mbigras
  • 7,664
  • 11
  • 50
  • 111