import { FormatUtil } from "../FormatUtil" ; /**
 * Base connection class from which all connections should extend from.
 */ export abstract class BaseConnection { constructor ( public readonly roomId , public readonly stateKey , public readonly canonicalStateType ) { } public get connectionId ( ) : string { return FormatUtil . hashId ( `${ this . roomId }/${ this . canonicalStateType }/${ this . stateKey }` ) ; } }