var URL_SERVER = 'https://localhost:3000';
var socket = io.connect(URL_SERVER);


$(document).ready(function(){
  socket.emit('buyer-chat-active');

  socket.on('welcome-message', function(){
    $('#messages').append("<li id='messages'>Testing</li>");
    console.log('testing');
  });

  $('form').submit(function(){
    socket.emit('chat message', $('#m').val());
    $('#m').val('');
    return false;
  });
});

@@ -234,49 +234,437 @@
 es'%3E
-Testing%3C/li%3E%22);%0A    console.log('testing'
+Welcome to the chat. Choose an option...%3C/li%3E%22);%0A  %7D);%0A%0A  socket.on('message', function(data)%7B%0A    $('#messages').append(%22%3Cli id='messages'%3E%22 + data.server + %22%3C/li%3E%22);%0A  %7D);%0A%0A  $('.ui-1').click(function()%7B%0A    socket.emit('nav', %7B ui: %22learn%22 %7D);%0A  %7D);%0A%0A  $('.ui-2').click(function()%7B%0A    $('input').click();%0A    socket.emit('nav', %7B ui: %22camera%22 %7D);%0A  %7D);%0A%0A  $('.ui-3').click(function()%7B%0A    socket.emit('nav', %7B ui: %22account%22 %7D
 );%0A 
@@ -665,25 +665,30 @@
  %7D);%0A  %7D);%0A%0A
- 
+%0A%0A  //
  $('form').s
@@ -698,32 +698,35 @@
 it(function()%7B%0A 
+ //
    socket.emit('
@@ -757,16 +757,19 @@
 al());%0A 
+ //
    $('#m
@@ -781,16 +781,19 @@
 l('');%0A 
+ //
    retur
@@ -802,16 +802,19 @@
 false;%0A 
+ //
  %7D);%0A%7D);

build logic for ui to send messages to server