Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

ActionCable streaming from a strange channel name

Rails • Asked by ValentinKLN

I'm following your course "Group Chat with ActionCable" and everything works fine, except one thing: 

When I broadcast to 
ActionCable.server.broadcast "rooms:#{}"
, it does nothing. The "received" function is never called. 

Something is strange in my app console : 
ActionCable] [User 6] RoomsChannel is streaming from rooms:rooms:1
Why do I have 2 times rooms ? I think that's the problem. But in my RoomsChannel file I'm streaming the right name: 
stream_for "rooms:#{}"

Thanks in advance for your answer!

Best regards, 


Oh my god, it's "stream_from" and not "stream_for". SORRY GUYS...

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 29,763+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.