From 96126b2e2703cffd68c5055c5a6d52268baaf117 Mon Sep 17 00:00:00 2001 From: robinzhxie Date: Sun, 29 Sep 2019 17:22:41 +0800 Subject: [PATCH] fix(default): add websocket router, fixed #340 --- bin/tsw/default/config.default.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/tsw/default/config.default.js b/bin/tsw/default/config.default.js index b25823ca..d17ca87e 100644 --- a/bin/tsw/default/config.default.js +++ b/bin/tsw/default/config.default.js @@ -109,6 +109,17 @@ this.router = { } }; +this.wsRouter = { + name: function() { + return 'default'; + }, + find: function(name, ws) { + ws && ws.close(); + return null; + } +}; + + this.isCloud = false; this.page419 = null;