Log lnd rpc socket info on connect

This commit is contained in:
Daniel Lugo 2021-09-06 15:33:26 -04:00
parent 67d2dd4b04
commit 088cc3f3b4

View file

@ -47,6 +47,10 @@ module.exports = (
*/
try {
logger.info(
'Connect event for socket with handshake: ',
socket.handshake.auth
)
if (!isAuthenticated()) {
socket.emit(Common.Constants.ErrorCode.NOT_AUTH)
return