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 {
|
try {
|
||||||
|
logger.info(
|
||||||
|
'Connect event for socket with handshake: ',
|
||||||
|
socket.handshake.auth
|
||||||
|
)
|
||||||
if (!isAuthenticated()) {
|
if (!isAuthenticated()) {
|
||||||
socket.emit(Common.Constants.ErrorCode.NOT_AUTH)
|
socket.emit(Common.Constants.ErrorCode.NOT_AUTH)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue