Skip to content

Commit

Permalink
fix: this to self
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 9, 2023
1 parent ccc5e1d commit 24119fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class SocketServer extends EventEmitter {
socket.expires = expires;
self.emit('userStatus', { socket, method: 'userStatus', user_id, userStatus: 'on', organization_id });
} else
this.emit('userStatus', { socket, user_id, status: 'off', organization_id });
self.emit('userStatus', { socket, user_id, status: 'off', organization_id });

self.onWebSocket(socket);
// })
Expand Down

0 comments on commit 24119fb

Please sign in to comment.