DEV Community

A.N.Tsimanarson
A.N.Tsimanarson

Posted on

Uncaught TypeError: this.perform is not a function in rails 6

I'm starting whith ActionCable in rails 6 and it works very well but I don't know why the ".perform" method is undefined in poke_channel.js. Please I need your help

# in app/channels/poke_channel.rb

class PokeChannel < ApplicationCable::Channel
  def subscribed
    stream_from "poke"
  end

  def unsubscribed
    # Any cleanup needed when channel is
ā€¦

Top comments (0)