Replace pusher with action cable (#178)

closes #43
This commit is contained in:
Pranav Raj S
2019-10-25 01:37:01 +05:30
committed by Sojan Jose
parent c0354364ff
commit f4358d9993
28 changed files with 144 additions and 165 deletions

View File

@@ -0,0 +1,2 @@
class ApplicationCable::Channel < ActionCable::Channel::Base
end

View File

@@ -0,0 +1,2 @@
class ApplicationCable::Connection < ActionCable::Connection::Base
end

View File

@@ -0,0 +1,5 @@
class RoomChannel < ApplicationCable::Channel
def subscribed
stream_from params[:pubsub_token]
end
end