ReferenceError: socket is not defined
at /www/wwwroot/comunidadezdg/botzdg.js:58:9
at /www/wwwroot/comunidadezdg/node_modules/qrcode/lib/renderer/png.js:29:5
at exports.PNG. (/www/wwwroot/comunidadezdg/node_modules/qrcode/lib/renderer/png.js:49:5)
at exports.PNG.emit (events.js:400:28)
at module.exports.emit (events.js:400:28)
at module.exports. (/www/wwwroot/comunidadezdg/node_modules/pngjs/lib/packer-async.js:45:12)
at Deflate.emit (events.js:400:28)
at endReadableNT (internal/streams/readable.js:1333:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
ReferenceError: socket is not defined at /www/wwwroot/comunidadezdg/botzdg.js:58:9 at /www/wwwroot/comunidadezdg/node_modules/qrcode/lib/renderer/png.js:29:5 at exports.PNG. (/www/wwwroot/comunidadezdg/node_modules/qrcode/lib/renderer/png.js:49:5)
at exports.PNG.emit (events.js:400:28)
at module.exports.emit (events.js:400:28)
at module.exports. (/www/wwwroot/comunidadezdg/node_modules/pngjs/lib/packer-async.js:45:12)
at Deflate.emit (events.js:400:28)
at endReadableNT (internal/streams/readable.js:1333:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Alguem pode me ajudar, nao consegui resolver.