Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Should also stub the received callback
  • Loading branch information
dhh committed Dec 17, 2015
1 parent 19e7f65 commit e16d7c6
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -5,6 +5,9 @@ App.<%= class_name.underscore %> = App.cable.subscriptions.create "<%= class_nam
disconnected: ->
# Called when the subscription has been terminated by the server

received: (data) ->
# Called when there's incoming data on the websocket for this channel

<% actions.each do |action| -%>
<%= action %>: ->
@perform '<%= action %>'
Expand Down

0 comments on commit e16d7c6

Please sign in to comment.