diff --git a/src/Socket/socket.ts b/src/Socket/socket.ts index aecb686..edac1ed 100644 --- a/src/Socket/socket.ts +++ b/src/Socket/socket.ts @@ -83,8 +83,12 @@ export const makeSocket = ({ } /** send a binary node */ - const sendNode = (node: BinaryNode) => { - const buff = encodeBinaryNode(node) + const sendNode = (frame: BinaryNode) => { + if(logger.level === 'trace') { + logger.trace({ msgId: frame.attrs.id, fromMe: true, frame }, 'communication') + } + + const buff = encodeBinaryNode(frame) return sendRawMessage(buff) }