import { DriverInterface } from '../types/driver' ; import { OptionsInterface } from '../types/options' ; import { RealTimeLog } from '../logger' ; module author Jonathan Casarrubias <t:@johncasarrubias, gh:github.com/mean-expert-official>
 *  license description export class IO { static driver : DriverInterface ; static options : OptionsInterface ; constructor ( driver , options ) { RealTimeLog . log ( `IO server enabled using ${ options . driver . name } driver.` ) ; IO . driver = driver ; IO . options = options ; return IO ; } static emit ( event , message ) { IO . driver . emit ( event , typeof message === 'object' ? JSON . stringify ( message ) : message ) ; } static on ( event , next ) { IO . driver . on ( event , next ) ; } }