Add client token authentication #92

Closed
siburny wants to merge 4 commits from token-authentication into master
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 604aa8598d - Show all commits
+2
View File
@@ -11,6 +11,8 @@ class ClientManager {
constructor(opt) { constructor(opt) {
this.opt = opt || {}; this.opt = opt || {};
this.opt.tokens = this.opt.tokens || {};
// id -> client instance // id -> client instance
this.clients = new Map(); this.clients = new Map();
+1 -1
View File
@@ -27,7 +27,7 @@
"ws": "5.1.1" "ws": "5.1.1"
}, },
"scripts": { "scripts": {
"test": "mocha --check-leaks --require esm './**/*.test.js'", "test": "mocha --check-leaks --require esm ./**/*.test.js",
"start": "./bin/server", "start": "./bin/server",
"dev": "node-dev bin/server --port 3000" "dev": "node-dev bin/server --port 3000"
} }