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

livekit-client

Package Overview
Dependencies
Maintainers
29
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

livekit-client - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

4

dist/src/room/errors.d.ts

@@ -15,4 +15,4 @@ import { RequestResponse_Reason } from '@livekit/protocol';

status?: number;
reason?: ConnectionErrorReason;
constructor(message?: string, reason?: ConnectionErrorReason, status?: number);
reason: ConnectionErrorReason;
constructor(message: string, reason: ConnectionErrorReason, status?: number);
}

@@ -19,0 +19,0 @@ export declare class DeviceUnsupportedError extends LivekitError {

@@ -53,4 +53,4 @@ import type { AudioReceiverStats } from '../stats';

protected monitorReceiver: () => Promise<void>;
protected getReceiverStats(): Promise<AudioReceiverStats | undefined>;
getReceiverStats(): Promise<AudioReceiverStats | undefined>;
}
//# sourceMappingURL=RemoteAudioTrack.d.ts.map

@@ -0,1 +1,2 @@

import type { VideoReceiverStats } from '../stats';
import type { LoggerOptions } from '../types';

@@ -38,3 +39,3 @@ import RemoteTrack from './RemoteTrack';

protected monitorReceiver: () => Promise<void>;
private getReceiverStats;
getReceiverStats(): Promise<VideoReceiverStats | undefined>;
private stopObservingElement;

@@ -41,0 +42,0 @@ protected handleAppVisibilityChanged(): Promise<void>;

@@ -15,4 +15,4 @@ import { RequestResponse_Reason } from '@livekit/protocol';

status?: number;
reason?: ConnectionErrorReason;
constructor(message?: string, reason?: ConnectionErrorReason, status?: number);
reason: ConnectionErrorReason;
constructor(message: string, reason: ConnectionErrorReason, status?: number);
}

@@ -19,0 +19,0 @@ export declare class DeviceUnsupportedError extends LivekitError {

@@ -53,4 +53,4 @@ import type { AudioReceiverStats } from '../stats';

protected monitorReceiver: () => Promise<void>;
protected getReceiverStats(): Promise<AudioReceiverStats | undefined>;
getReceiverStats(): Promise<AudioReceiverStats | undefined>;
}
//# sourceMappingURL=RemoteAudioTrack.d.ts.map

@@ -0,1 +1,2 @@

import type { VideoReceiverStats } from '../stats';
import type { LoggerOptions } from '../types';

@@ -38,3 +39,3 @@ import RemoteTrack from './RemoteTrack';

protected monitorReceiver: () => Promise<void>;
private getReceiverStats;
getReceiverStats(): Promise<VideoReceiverStats | undefined>;
private stopObservingElement;

@@ -41,0 +42,0 @@ protected handleAppVisibilityChanged(): Promise<void>;

{
"name": "livekit-client",
"version": "2.6.0",
"version": "2.6.1",
"description": "JavaScript/TypeScript client SDK for LiveKit",

@@ -5,0 +5,0 @@ "main": "./dist/livekit-client.umd.js",

@@ -275,3 +275,8 @@ import { Mutex } from '@livekit/mutex';

clearTimeout(wsTimeout);
reject(new ConnectionError('room connection has been cancelled (signal)'));
reject(
new ConnectionError(
'room connection has been cancelled (signal)',
ConnectionErrorReason.Cancelled,
),
);
};

@@ -281,3 +286,8 @@

this.close();
reject(new ConnectionError('room connection has timed out (signal)'));
reject(
new ConnectionError(
'room connection has timed out (signal)',
ConnectionErrorReason.ServerUnreachable,
),
);
}, opts.websocketTimeout);

@@ -396,2 +406,3 @@

`did not receive join response, got ${resp.message?.case} instead`,
ConnectionErrorReason.InternalError,
),

@@ -413,3 +424,8 @@ );

if (this.isEstablishingConnection) {
reject(new ConnectionError('Websocket got closed during a (re)connection attempt'));
reject(
new ConnectionError(
'Websocket got closed during a (re)connection attempt',
ConnectionErrorReason.InternalError,
),
);
}

@@ -416,0 +432,0 @@

@@ -23,5 +23,5 @@ import { RequestResponse_Reason } from '@livekit/protocol';

reason?: ConnectionErrorReason;
reason: ConnectionErrorReason;
constructor(message?: string, reason?: ConnectionErrorReason, status?: number) {
constructor(message: string, reason: ConnectionErrorReason, status?: number) {
super(1, message);

@@ -28,0 +28,0 @@ this.status = status;

@@ -345,3 +345,8 @@ import { Mutex } from '@livekit/mutex';

abortController?.signal.removeEventListener('abort', abortHandler);
reject(new ConnectionError('could not establish pc connection'));
reject(
new ConnectionError(
'could not establish pc connection',
ConnectionErrorReason.InternalError,
),
);
}, timeout);

@@ -348,0 +353,0 @@

@@ -73,3 +73,5 @@ import type { RegionInfo, RegionSettings } from '@livekit/protocol';

`Could not fetch region settings: ${regionSettingsResponse.statusText}`,
regionSettingsResponse.status === 401 ? ConnectionErrorReason.NotAllowed : undefined,
regionSettingsResponse.status === 401
? ConnectionErrorReason.NotAllowed
: ConnectionErrorReason.InternalError,
regionSettingsResponse.status,

@@ -76,0 +78,0 @@ );

@@ -316,3 +316,6 @@ import { Mutex } from '@livekit/mutex';

reject(
new ConnectionError('publication of local track timed out, no response from server'),
new ConnectionError(
'publication of local track timed out, no response from server',
ConnectionErrorReason.InternalError,
),
);

@@ -1065,3 +1068,6 @@ }, 10_000);

this.pcState = PCState.Disconnected;
throw new ConnectionError(`could not establish PC connection, ${e.message}`);
throw new ConnectionError(
`could not establish PC connection, ${e.message}`,
ConnectionErrorReason.InternalError,
);
}

@@ -1131,3 +1137,6 @@ }

if (!transport) {
throw new ConnectionError(`${transportName} connection not set`);
throw new ConnectionError(
`${transportName} connection not set`,
ConnectionErrorReason.InternalError,
);
}

@@ -1173,2 +1182,3 @@

`could not establish ${transportName} connection, state: ${transport.getICEConnectionState()}`,
ConnectionErrorReason.InternalError,
);

@@ -1175,0 +1185,0 @@ }

@@ -236,3 +236,3 @@ import { TrackEvent } from '../events';

protected async getReceiverStats(): Promise<AudioReceiverStats | undefined> {
async getReceiverStats(): Promise<AudioReceiverStats | undefined> {
if (!this.receiver || !this.receiver.getStats) {

@@ -239,0 +239,0 @@ return;

@@ -166,3 +166,3 @@ import { debounce } from 'ts-debounce';

private async getReceiverStats(): Promise<VideoReceiverStats | undefined> {
async getReceiverStats(): Promise<VideoReceiverStats | undefined> {
if (!this.receiver || !this.receiver.getStats) {

@@ -169,0 +169,0 @@ return;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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