From 9169cf8bbcb022e68c73284113583b5a5c6dab65 Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Tue, 11 Jun 2024 11:07:55 +0200 Subject: [PATCH] solve isValidProtocol --- lib/compressjs/tangram.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compressjs/tangram.ts b/lib/compressjs/tangram.ts index 41356ad..b991026 100644 --- a/lib/compressjs/tangram.ts +++ b/lib/compressjs/tangram.ts @@ -476,7 +476,7 @@ export class TangramClient { * @param {string} protocol - The protocol to check. * @returns {boolean} True if the protocol is "rtmp" or "srt", otherwise false. */ - static isValidProtocol(protocol) { + isValidProtocol(protocol) { return protocol === 'rtmp' || protocol === 'srt'; } @@ -488,7 +488,7 @@ export class TangramClient { * @returns instance event object */ createEvent(instance_name : string, event_name: string, protocol :string){ - if (!this.isValidProtocol(protocol)){ + if (! this.isValidProtocol(protocol)){ return null } return {