mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Merge branch 'master' into invalid-qr-patch
This commit is contained in:
@@ -83,8 +83,12 @@ export const makeSocket = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** send a binary node */
|
/** send a binary node */
|
||||||
const sendNode = (node: BinaryNode) => {
|
const sendNode = (frame: BinaryNode) => {
|
||||||
const buff = encodeBinaryNode(node)
|
if(logger.level === 'trace') {
|
||||||
|
logger.trace({ msgId: frame.attrs.id, fromMe: true, frame }, 'communication')
|
||||||
|
}
|
||||||
|
|
||||||
|
const buff = encodeBinaryNode(frame)
|
||||||
return sendRawMessage(buff)
|
return sendRawMessage(buff)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user