gram-tgcalls
Advanced tools
Comparing version 2.1.7 to 2.1.8
@@ -56,3 +56,3 @@ import { Api, TelegramClient } from 'telegram'; | ||
/** | ||
* Stops the stream, closes the WebRTC connection, sends leave request to Telegram and frees up resources. Returns `false` if not in call or `true` if successful. | ||
* Stops the streams, closes the WebRTC connection, sends leave request to Telegram and frees up resources. Returns `false` if not in call or `true` if successful. | ||
*/ | ||
@@ -59,0 +59,0 @@ stop(): Promise<boolean>; |
@@ -229,8 +229,11 @@ "use strict"; | ||
/** | ||
* Stops the stream, closes the WebRTC connection, sends leave request to Telegram and frees up resources. Returns `false` if not in call or `true` if successful. | ||
* Stops the streams, closes the WebRTC connection, sends leave request to Telegram and frees up resources. Returns `false` if not in call or `true` if successful. | ||
*/ | ||
async stop() { | ||
var _a, _b; | ||
if (!this.call) { | ||
return false; | ||
} | ||
(_a = this.audioStream) === null || _a === void 0 ? void 0 : _a.stop(); | ||
(_b = this.videoStream) === null || _b === void 0 ? void 0 : _b.stop(); | ||
this.close(); | ||
@@ -237,0 +240,0 @@ await calls.leave(this.client, this.call); |
{ | ||
"name": "gram-tgcalls", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27655
507