Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gotgcalls-server

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gotgcalls-server - npm Package Compare versions

Comparing version 0.0.0-rc.6 to 0.0.0-rc.7

20

dist/calls.js

@@ -29,8 +29,16 @@ "use strict";

const tgcalls = new base_tgcalls_1.BaseTGCalls(null);
tgcalls.joinVoiceCall = async (payload) => JSON.parse(await this.connection.dispatch("joinCall", {
chatId,
isChat,
accessHash,
payload,
}));
tgcalls.joinVoiceCall = async (payload) => {
try {
return JSON.parse(await this.connection.dispatch("joinCall", {
chatId,
isChat,
accessHash,
payload,
}));
}
catch (err) {
this.stop(chatId);
throw err;
}
};
const stream = new base_tgcalls_1.Stream(readable);

@@ -37,0 +45,0 @@ stream.on("finish", () => {

{
"name": "gotgcalls-server",
"version": "0.0.0-rc.6",
"version": "0.0.0-rc.7",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "bin": "dist/index.js",

@@ -31,11 +31,17 @@ import { createReadStream } from "fs";

const tgcalls = new BaseTGCalls(null);
tgcalls.joinVoiceCall = async (payload) =>
JSON.parse(
await this.connection.dispatch("joinCall", {
chatId,
isChat,
accessHash,
payload,
}),
);
tgcalls.joinVoiceCall = async (payload) => {
try {
return JSON.parse(
await this.connection.dispatch("joinCall", {
chatId,
isChat,
accessHash,
payload,
}),
);
} catch (err) {
this.stop(chatId);
throw err;
}
};
const stream = new Stream(readable);

@@ -42,0 +48,0 @@ stream.on("finish", () => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc