title: Why does the bot message not send?
body: <p>I am using c9 as my dev environment and when running under development the bot does not actually send the message through even though sending.batch was called.</p>
  
  <pre><code>var bot = new builder.UniversalBot(connector);
  
  bot.dialog('/', function (session) {
    session.send('Alec said ' + session.message.text);
  });
  function status(request,reply){
   connector.listen(request.raw.req,request.raw.res);
   return reply("ok");
  }
    if (useEmulator) {
     var restify = require('restify');
     var server = restify.createServer();
     server.listen(8080, function() {
       console.log('test bot endpont at http://localhost:8080/api/messages');
     });
     server.post('/api/messages', connector.listen());  
  } else {
    module.exports = { default: connector.listen() }
  }
  </code></pre>
  
  <p>That is the code use to implement server, as taken from azure bot setup, i edited the port as c9 cant use the default port.</p>
  
  <p><a href="https://i.stack.imgur.com/EdkSl.jpg" rel="nofollow noreferrer">results after sending a message through emulator</a></p>