import { SDKFetch } from '../SDKFetch' ; export class SocketFetch extends SDKFetch { join ( room , consumerId ) { return this . post < void > ( `${ room }/subscribe` , { consumerId : consumerId } ) . toPromise ( ) ; } leave ( room , consumerId ) { return this . delete < void > ( `${ room }/subscribe` , { consumerId } ) . toPromise ( ) ; } } export default new SocketFetch ( ) ;