chore: add logging to NS

This commit is contained in:
Adhiraj Singh
2022-04-23 11:55:31 +05:30
parent 39828d1e57
commit b3937b8852
2 changed files with 17 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ export const makeSocket = ({
/** ephemeral key pair used to encrypt/decrypt communication. Unique for each connection */
const ephemeralKeyPair = Curve.generateKeyPair()
/** WA noise protocol wrapper */
const noise = makeNoiseHandler(ephemeralKeyPair)
const noise = makeNoiseHandler(ephemeralKeyPair, logger)
let authState = initialAuthState
if(!authState) {
authState = useSingleFileAuthState('./auth-info-multi.json').state