Permalink
Browse files

Add misc tweaks

  • Loading branch information...
Sutto committed Jul 28, 2011
1 parent 0b317a6 commit 88cec88fd92cd5f5c264797ccb261e1ae82b2a65
Showing with 7 additions and 0 deletions.
  1. +3 −0 src/pebble/base.coffee
  2. +4 −0 src/pebble/broadcaster.coffee
View
@@ -1,4 +1,5 @@
sys = require 'sys'
+uuid = require 'node-uuid'
class Base
@@ -26,6 +27,8 @@ class Base
else
message = key
key = @namespace
+ # Generate a unique uuid for each outgoing message.
+ message._id = uuid()
@runner.broadcast.broadcast key, message
@runner.redis.addHistory key, JSON.stringify(message)
@@ -24,6 +24,10 @@ class Broadcaster
setupClient: ->
@io = io.listen @runner.web.app
@io.set 'log level', 0
+ @io.configure 'production', =>
+ @io.enable 'browser client minification'
+ @io.enable 'browser client etag'
+
setupPubSub: ->
# When it's indirect, we need to do some type conditional setup.

0 comments on commit 88cec88

Please sign in to comment.