Skip to content

Commit ef209f7

Browse files
committed
Logs all incoming messages in the extension
Signed-off-by: Akash Manohar J <[email protected]>
1 parent db8ba43 commit ef209f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/assets/javascripts/backbone/broadcasters/faye.js.coffee

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ class Kandan.Broadcasters.FayeBroadcaster
1010
auth_token: Kandan.Helpers.Users.current_user().auth_token
1111
}
1212
callback(message)
13+
14+
incoming: (message, callback)->
15+
console.log "incoming", message
16+
callback(message)
1317
}
1418
@faye_client.bind "transport:down", ()->
1519
console.log "Comm link to Cybertron is down!"

0 commit comments

Comments
 (0)