Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
enable server.opts.publishNewClient by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mocheng committed Aug 8, 2014
1 parent bb3fe9c commit bf01dd4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ var defaults = {
wildcardSome: '#'
},
stats: true,
publishNewClient: true,
maxInflightMessages: 1024,
logger: {
name: "mosca",
Expand Down
1 change: 1 addition & 0 deletions test/abstract_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = function(moscaSettings, createConnection) {

beforeEach(function(done) {
settings = moscaSettings();
settings.publishNewClient = false;
instance = new mosca.Server(settings, done);
this.instance = instance;
this.settings = settings;
Expand Down
1 change: 1 addition & 0 deletions test/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var moscaSettings = function() {
return {
port: nextPort(),
stats: false,
publishNewClient: false,
persistence: {
factory: mosca.persistence.Memory
},
Expand Down
1 change: 1 addition & 0 deletions test/server_mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe("mosca.Server with mongo persistence", function() {
return {
port: nextPort(),
stats: false,
publishNewClient: false,
logger: {
childOf: globalLogger,
level: 60
Expand Down
1 change: 1 addition & 0 deletions test/server_redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe("mosca.Server with redis persistence", function() {
return {
port: nextPort(),
stats: false,
publishNewClient: false,
logger: {
childOf: globalLogger,
level: 60
Expand Down

0 comments on commit bf01dd4

Please sign in to comment.