diff --git a/static/cosmopolite.js b/static/cosmopolite.js index fd0c3f2..f44017e 100644 --- a/static/cosmopolite.js +++ b/static/cosmopolite.js @@ -45,8 +45,6 @@ var Cosmopolite = function(callbacks, urlPrefix, namespace) { this.subscriptions_ = {}; this.profilePromises_ = []; - this.instanceId_ = this.uuid_(); - this.messageQueueKey_ = this.namespace_ + ':message_queue'; if (this.messageQueueKey_ in localStorage) { var messages = JSON.parse(localStorage[this.messageQueueKey_]); @@ -596,6 +594,8 @@ Cosmopolite.prototype.createChannel_ = function() { return; } + this.instanceId_ = this.uuid_(); + var rpcs = [ { 'command': 'createChannel',