export class App { type { string } public id : string ; type { string } public key : string ; type { string } public secret : string ; type { number } public maxConnections : number ; type { string [ ] } public allowedOrigins : string [ ] ; type { boolean } public enableStats : boolean ; param { object } app constructor ( app ) { this . id = app . id ; this . key = app . key ; this . secret = app . secret ; this . maxConnections = app . maxConnections || - 1 ; this . allowedOrigins = app . allowedOrigins || [ '*' ] ; this . enableStats = app . enableStats || false ; } }