From 593c017a084eb351fb1294ae9dde18e99585d574 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 7 Sep 2017 18:12:22 +0800 Subject: [PATCH] update print event action --- server.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server.js b/server.js index 231172f..266c651 100644 --- a/server.js +++ b/server.js @@ -76,12 +76,11 @@ if (router !== null) { // listen print event localEvent.on('print', str => { - + Printer.addCount() + Printer.lastPrint = str }) ws.on('connection', async (client, req) => { - console.log(`client conneected`) - let json = { ble: { enable: false, @@ -126,8 +125,6 @@ ws.on('connection', async (client, req) => { client.send(JSON.stringify({ type: 'status', data: json })) break } - - console.log(`get msg >> ${msg}`) }) })