Advertisement
Guest User

Untitled

a guest
May 26th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. socket.on('connect', function() {
  2. console.log('connected');
  3. {% if chat_session_ids %}
  4. {{ chat_session_ids|safe }}.forEach(function(userId) {
  5. socket.emit('join', { room: String(userId) });
  6. })
  7. {% endif %}
  8. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement