Added ability to log messages

This commit is contained in:
Adhiraj
2020-09-30 20:44:22 +05:30
parent ab54e70add
commit 8277590d11
8 changed files with 66 additions and 44 deletions

View File

@@ -33,7 +33,6 @@ const list = wsMessages.map ((item, i) => {
try {
const [tag, json, binaryTags] = decrypt (buffer, item.type === 'send')
if (json && json[1] && json[1].add) return
return {tag, json: json && JSON.stringify(json), binaryTags}
} catch (error) {
return { error: error.message, data: buffer.toString('utf-8') }