Socket
Socket
Sign inDemoInstall

tiktok-live-connector

Package Overview
Dependencies
84
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.3 to 1.1.4

4

.tests/test1.js

@@ -5,4 +5,6 @@ const { WebcastPushConnection, signatureProvider } = require('tiktok-live-connector');

signatureProvider.config.extraParams.apiKey = 'NDA2NDA5OTI3N2M4OTE0OGQ3NWEzOWQxMTg2NzFmODViYTIxN2NkNzYwNDdiYThkZWE3ZGM2';
// Username of someone who is currently live
let tiktokUsername = "curlyyy14";
let tiktokUsername = "deryaoffiziell";

@@ -9,0 +11,0 @@ // Create a new wrapper object and pass the username

@@ -573,3 +573,3 @@ "use strict";

let webcastResponse = await _classPrivateFieldGet(this, _httpClient).getDeserializedObjectFromWebcastApi('im/fetch/', _classPrivateFieldGet(this, _clientParams), 'WebcastResponse', isInitial);
let upgradeToWsOffered = !!webcastResponse.wsUrl && !!webcastResponse.wsParam;
let upgradeToWsOffered = !!webcastResponse.wsUrl;

@@ -605,5 +605,7 @@ if (!webcastResponse.cursor) {

try {
var _webcastResponse$wsPa;
// Websocket specific params
let wsParams = {
imprp: webcastResponse.wsParam.value,
imprp: ((_webcastResponse$wsPa = webcastResponse.wsParam) === null || _webcastResponse$wsPa === void 0 ? void 0 : _webcastResponse$wsPa.value) || '',
compress: 'gzip'

@@ -610,0 +612,0 @@ }; // Wait until ws connected, then stop request polling

@@ -32,2 +32,3 @@ export const TIKTOK_URL_WEB: string;

const root_referer: string;
const host: string;
const version_code: number;

@@ -34,0 +35,0 @@ const webcast_sdk_version: string;

@@ -22,3 +22,3 @@ "use strict";

from_page: 'user',
history_len: 4,
history_len: 0,
is_fullscreen: false,

@@ -36,3 +36,4 @@ is_page_visible: true,

root_referer: 'https://www.tiktok.com/',
version_code: 180800,
host: 'https://webcast.tiktok.com',
version_code: 270000,
webcast_sdk_version: '1.3.0',

@@ -39,0 +40,0 @@ update_version_code: '1.3.0'

@@ -51,3 +51,3 @@ "use strict";

this.connect(this.wsUrlWithParams, 'echo-protocol', Config.TIKTOK_URL_WEBCAST, this.wsHeaders, websocketOptions);
this.connect(this.wsUrlWithParams, '', Config.TIKTOK_URL_WEB, this.wsHeaders, websocketOptions);
}

@@ -54,0 +54,0 @@

{
"name": "tiktok-live-connector",
"version": "1.1.3",
"version": "1.1.4",
"description": "Node.js module to receive live stream chat events like comments and gifts from TikTok LIVE",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc