update print event action

This commit is contained in:
Jay 2017-09-07 18:12:22 +08:00
parent 97ee7dc6cd
commit 593c017a08

View File

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