Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add misc tweaks
  • Loading branch information
Sutto committed Jul 28, 2011
1 parent 0b317a6 commit 88cec88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pebble/base.coffee
@@ -1,4 +1,5 @@
sys = require 'sys'
uuid = require 'node-uuid'

class Base

Expand Down Expand Up @@ -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)

Expand Down
4 changes: 4 additions & 0 deletions src/pebble/broadcaster.coffee
Expand Up @@ -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.
Expand Down

0 comments on commit 88cec88

Please sign in to comment.