/**
 *
 */ export abstract class Common { protected abstract socket ; /** Contains instance of Socket */ abstract emit ( event , ... payload ) ; abstract on ( event , callback ) ; abstract once ( event , callback ) ; abstract off ( event ) ; abstract connected : boolean ; get disconnected ( ) { return ! this . connected ; } get instance ( ) { return this . socket ; } abstract joinNamespace ( nsp ) ; abstract leaveNamespace ( ) ; public connect ( ) { this . socket . connect ( ) ; } public disconnect ( ) { this . socket . disconnect ( ) ; } }