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}`) }) })