// es6 runtime requirements
require('babel/polyfill');

import express from 'express';
import { Server as http } from 'http';

export default function service(){
  
  let app = express();
  let server = http(app);
  
  // static files
  app.use(express.static(__dirname + '/../public'));
  app.get("/", (req, res) => {
   
    res.sendFile(__dirname + '/../public/index.html');
  });

  return server;
}

@@ -48,17 +48,16 @@
 fill');%0A
-%0A
 import e
@@ -117,16 +117,49 @@
  'http';
+%0Aimport sockets from 'socket.io';
 %0A%0Aexport
@@ -239,18 +239,44 @@
 p(app);%0A
-
   
+let io = sockets(server);%0A
 %0A  // st

add socket.io