fix(Xo#_watchObject): check for notify()
This commit is contained in:
parent
5adfe9a552
commit
d83bf0ebaf
@ -330,7 +330,7 @@ export default class Xo extends EventEmitter {
|
||||
|
||||
forEach(connections, connection => {
|
||||
// Notifies only authenticated clients.
|
||||
if (connection.has('user_id')) {
|
||||
if (connection.has('user_id') && connection.notify) {
|
||||
if (enteredMessage) {
|
||||
connection.notify('all', enteredMessage)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user