message: wrap socket server in a function
  use pre-existing webserver
diff: @@ -3,15 +3,17 @@ var WebSocket = require('ws');
  var express = require('express');
  var bodyParser = require('body-parser');
  var querystring = require('querystring');
  -
  +var http = require('http');
  function SocketBot(configuration) {
  var controller = Botkit(configuration || {});
  - var wss = new WebSocket.Server({
  - port: configuration.socket_port || 8080,
  - });
  +
  + controller.openSocketServer = function(server) {
  +
  + // create the socket server along side the existing webserver.
  + var wss = new WebSocket.Server({ server });
  wss.on('connection', function connection(ws) {
  @@ -70,6 +72,7 @@ function SocketBot(configuration) {
  });
  });
  + }
  controller.defineBot(function(botkit, config) {
  