Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add misc tweaks

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

0 notes on commit 88cec88

Please sign in to comment.
Something went wrong with that request. Please try again.