correct non_auth event
This commit is contained in:
parent
ea37088ae9
commit
1853d2d848
1 changed files with 7 additions and 2 deletions
|
|
@ -306,7 +306,7 @@ module.exports = (
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!isAuthenticated()) {
|
if (!isAuthenticated()) {
|
||||||
socket.emit('$shock', 'NOT_AUTH')
|
socket.emit(Common.Constants.ErrorCode.NOT_AUTH)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -370,7 +370,7 @@ module.exports = (
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
io.of('/lndstreaming').on('connect', socket => {
|
io.of('lndstreaming').on('connect', socket => {
|
||||||
// TODO: unsubscription
|
// TODO: unsubscription
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -378,6 +378,11 @@ module.exports = (
|
||||||
*/
|
*/
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (!isAuthenticated()) {
|
||||||
|
socket.emit(Common.Constants.ErrorCode.NOT_AUTH)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const { services } = LightningServices
|
const { services } = LightningServices
|
||||||
|
|
||||||
const { service, method, args: unParsed } = socket.handshake.query
|
const { service, method, args: unParsed } = socket.handshake.query
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue