Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- socket.on('connect', function() {
- console.log('connected');
- {% if chat_session_ids %}
- {{ chat_session_ids|safe }}.forEach(function(userId) {
- socket.emit('join', { room: String(userId) });
- })
- {% endif %}
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement