首次提交
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
'use strict'
|
||||
|
||||
const write = require('../write')
|
||||
const pingResp = {
|
||||
cmd: 'pingresp'
|
||||
}
|
||||
|
||||
function handlePing (client, packet, done) {
|
||||
client.broker.emit('ping', packet, client)
|
||||
write(client, pingResp, done)
|
||||
}
|
||||
|
||||
module.exports = handlePing
|
||||
Reference in New Issue
Block a user