Rename publish to broadcast

This commit is contained in:
Pratik Naik 2015-01-15 10:24:35 +05:30
parent db568553d1
commit 935b73b4c1
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -38,7 +38,7 @@ module ActionCable
end
end
def publish(data)
def broadcast(data)
render data
end