Log lnd rpc socket info on connect
This commit is contained in:
parent
67d2dd4b04
commit
088cc3f3b4
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue