abstract out faye

This commit is contained in:
2012-11-29 11:32:22 +01:00
parent 0fa0d1e0ba
commit b9c0ca326b
11 changed files with 25 additions and 18 deletions
@@ -29,6 +29,7 @@
//= require qwaiter
//= require supplier/order
//= require mustache
//= require faye
//= require_directory .
//= require_self
var path_mapping = {
+1 -1
View File
@@ -10,7 +10,7 @@ class Quser
formatted += utc.substr(11, 5)
formatted
watch_events: ->
faye = new Faye.Client('http://localhost:9292/faye')
faye = new Faye.Client(event_host)
faye.subscribe "/user/"+QMobile.user_id(), (e)=>
if(e.event == 'list_closed')
#redirect_to 'user_root', {list_closed: 'true'}