import express = require ( "express" ) ; import { Server } from "http" ; import { addYoutubeCatcher } from "./youtube" ; export class export class Catcher { server : Server ; param { number } port memberof constructor ( port ) { var app = express ( ) ; addYoutubeCatcher ( app ) ; this . server = app . listen ( port , ( ) => { console . log ( `catcher listening to port ${ port }` ) ; } ) ; } memberof close ( ) { this . server . close ( ) ; } }