Removing unused messages
This commit is contained in:
parent
73a6cd911b
commit
0a40efdaf7
2 changed files with 0 additions and 9 deletions
|
|
@ -8,10 +8,6 @@ class SocketsController < ApplicationController
|
|||
puts "#{msg} connected!"
|
||||
end
|
||||
|
||||
def new_subscriber
|
||||
WebSocket.subscribe
|
||||
end
|
||||
|
||||
def outgoing(object)
|
||||
@_request = ActionDispatch::Request.new({})
|
||||
WebSocket.push_to_clients(action_hash(object))
|
||||
|
|
|
|||
|
|
@ -32,10 +32,5 @@ module WebSocket
|
|||
@channel.unsubscribe(sid)
|
||||
end
|
||||
|
||||
|
||||
def self.subscribe
|
||||
@channel.subscribe{ |msg| ws.send msg }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue