/* global: io */
const socket = io.connect('http://localhost:3000');
socket.on('connection', () => {});
socket.on('meeting', (data) => {
  let title = 'Ingen aktiv generalforsamling.';

  if (data && data.title) {
    title = data.title;
  }
  document.getElementById('meeting-title').innerHTML = title;

  socket.emit('my other event', { my: 'data' });
  const node = document.createElement('p');
  node.innerHTML = title;
  document.getElementById('log').appendChild(node);

  console.log('emitting issue thingy');
  socket.emit('issue', { action: 'open', title: 'Mitt spørsmål' });
  setTimeout(() => {
    socket.emit('issue', { action: 'close', title: 'Mitt spørsmål' });
  }, 10000)
});

socket.on('issue', (data) => {
  let question = 'Ingen aktiv sak for øyeblikket.';
  if (data && data.title && data.action !== 'close') {
    question = data.title;
  }
  document.getElementById('question').innerHTML = question;
});

@@ -681,16 +681,152 @@
 , 10000)
+;%0A%7D);%0A%0Asocket.on('public', (data) =%3E %7B%0A  console.log('public', data);%0A%7D);%0A%0Asocket.on('private', (data) =%3E %7B%0A  console.log('priv', data);
 %0A%7D);%0A%0Aso
@@ -850,24 +850,54 @@
 (data) =%3E %7B%0A
+  console.log('issue', data);%0A
   let questi

Update testing frontend a bit