Skip to content

Commit

Permalink
Merge pull request #12 from kalm/v2.6.0
Browse files Browse the repository at this point in the history
v2.6.0
  • Loading branch information
fed135 authored Jan 27, 2018
2 parents 1a3c25e + 717abcf commit 5b71784
Show file tree
Hide file tree
Showing 3 changed files with 358 additions and 6 deletions.
347 changes: 347 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "kalm",
"version": "2.5.1",
"version": "2.6.0",
"description": "The socket manager",
"main": "./index.js",
"scripts": {
"test": "mocha tests/unit --recursive && mocha tests/integration",
"test": "mocha tests/unit --recursive && mocha tests/integration --exit",
"bench": "node tests/benchmarks"
},
"engines": {
Expand Down Expand Up @@ -50,8 +50,8 @@
},
"devDependencies": {
"chai": "~4.1.0",
"mocha": "~3.5.0",
"sinon": "~3.3.0"
"mocha": "~5.0.0",
"sinon": "~4.2.0"
},
"browser": {
"net": false,
Expand All @@ -61,4 +61,4 @@
"contributors": [
"frederic charette <[email protected]>"
]
}
}
7 changes: 6 additions & 1 deletion src/components/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ function Server(scope, crypto, clientFactory) {
secretKey: scope.secretKey,
isServer: true,
hostname: origin.host,
port: origin.port
port: origin.port,
server: {
connections: scope.connections,
broadcast,
stop
}
}, options));

scope.connections.push(client);
Expand Down

0 comments on commit 5b71784

Please sign in to comment.