broken pipe quest

This commit is contained in:
2014-08-13 15:17:27 +02:00
parent 031e2bedea
commit 3fc7030002
13 changed files with 41 additions and 53 deletions
@@ -3,8 +3,10 @@ root.Qsupplier=
watch_events: ->
faye = new Faye.Client(event_host)
faye.subscribe "/supplier/#{supplier_object.id}", (e)=>
<% if Rails.env.development? %>
console.log "Event: #{e.event}"
console.log e.data
<% end %>
if(e.event == 'new_order')
if App
App.store().pushPayload(e.data)