'use strict';

const twilio = require('./twilio');

function onConnect(socket) {
  console.log(`${socket.id} is now connected!`);
  socket.on('send', message => {
    // twilio.sendMessage(message, socket);
    respond('Test response');
  });
}

function respond(response) {
  const io = require('../server').io;
  io.emit('response', response);
}

module.exports = {
  onConnect: onConnect,
  respond: respond
};

@@ -163,11 +163,8 @@
 %0A   
- //
  twi
@@ -201,38 +201,8 @@
 t);%0A
-    respond('Test response');%0A
   %7D)

Remove test response