update print event action
This commit is contained in:
parent
97ee7dc6cd
commit
593c017a08
@ -76,12 +76,11 @@ if (router !== null) {
|
|||||||
|
|
||||||
// listen print event
|
// listen print event
|
||||||
localEvent.on('print', str => {
|
localEvent.on('print', str => {
|
||||||
|
Printer.addCount()
|
||||||
|
Printer.lastPrint = str
|
||||||
})
|
})
|
||||||
|
|
||||||
ws.on('connection', async (client, req) => {
|
ws.on('connection', async (client, req) => {
|
||||||
console.log(`client conneected`)
|
|
||||||
|
|
||||||
let json = {
|
let json = {
|
||||||
ble: {
|
ble: {
|
||||||
enable: false,
|
enable: false,
|
||||||
@ -126,8 +125,6 @@ ws.on('connection', async (client, req) => {
|
|||||||
client.send(JSON.stringify({ type: 'status', data: json }))
|
client.send(JSON.stringify({ type: 'status', data: json }))
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`get msg >> ${msg}`)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user