import { IODriver } from './io.driver' ; import { DriverInterface } from '../types/driver' ; import { OptionsInterface } from '../types/options' ; export class DriverFactory { static load ( name ) { let driver ; switch ( name ) { case 'socket.io' : driver = < DriverInterface > new IODriver ( ) ; break ; default : break ; } return driver ; } }