mirror of https://github.com/rails/rails
Rename publish to broadcast
This commit is contained in:
parent
db568553d1
commit
935b73b4c1
|
@ -45,8 +45,8 @@ module ActionCable
|
|||
# Override in subclasses
|
||||
end
|
||||
|
||||
def publish(data)
|
||||
@connection.publish(data.merge(identifier: @channel_identifier).to_json)
|
||||
def broadcast(data)
|
||||
@connection.broadcast(data.merge(identifier: @channel_identifier).to_json)
|
||||
end
|
||||
|
||||
def start_periodic_timers
|
||||
|
|
|
@ -38,7 +38,7 @@ module ActionCable
|
|||
end
|
||||
end
|
||||
|
||||
def publish(data)
|
||||
def broadcast(data)
|
||||
render data
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue