import { getMeta , SocketMeta } from '../meta' ; import { Type } from '../middleware' ; param { string } namespace param { Type [ ] } middleware export function Controller ( namespace , middleware ? ) { return ( target ) : void => { const meta = getMeta ( target . prototype ) ; meta . namespace = namespace ; meta . middleware = middleware ; } ; } ;