use non-restricted event name

This commit is contained in:
Daniel Lugo 2020-10-02 14:35:25 -04:00
parent ce49d8dae9
commit 892890bbfd

View file

@ -376,7 +376,8 @@ module.exports = (
}) })
call.on('error', err => { call.on('error', err => {
socket.emit('error', err) // 'error' is a reserved event name we can't use it
socket.emit('$error', err)
}) })
// Possibly allow streaming writes such as sendPaymentV2 // Possibly allow streaming writes such as sendPaymentV2