Skip to content

Instantly share code, notes, and snippets.

@jamigibbs

jamigibbs/server.js

Created Mar 30, 2020
Embed
What would you like to do?
Refresh chat users
socket.on('userEnteredChat', () => {
io.emit('refreshChatUsers');
});
socket.on('userLeftChat', () => {
io.emit('refreshChatUsers');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.