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

@signalwire/js

Package Overview
Dependencies
Maintainers
2
Versions
368
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@signalwire/js - npm Package Compare versions

Comparing version 3.18.0-dev.202301191718.e2c475a.0 to 3.18.0-dev.202302281452.07644c3.0

dist/core/src/utils/CloseEvent.d.ts

2

dist/core/src/BaseComponent.d.ts

@@ -194,3 +194,3 @@ import type { Task } from '@redux-saga/types';

/** @internal */
protected runWorker<Hooks extends SDKWorkerHooks = SDKWorkerHooks>(name: string, def: SDKWorkerDefinition<Hooks>): void;
protected runWorker<Hooks extends SDKWorkerHooks = SDKWorkerHooks>(name: string, def: SDKWorkerDefinition<Hooks>): Task<any>;
private _setWorker;

@@ -197,0 +197,0 @@ private _attachWorker;

@@ -11,2 +11,3 @@ import { PayloadAction } from './redux';

WebSocketConstructor: NodeSocketAdapter | WebSocketAdapter;
CloseEventConstructor: typeof CloseEvent;
agent: string;

@@ -23,6 +24,7 @@ connectVersion: {

private _host;
protected _swConnectError: symbol;
private _executeTimeoutMs;
private _executeTimeoutError;
private _executeQueue;
private _swConnectError;
private _executeConnectionClosed;
private _checkPingDelay;

@@ -80,2 +82,3 @@ private _checkPingTimer;

authError(error: SessionAuthError): void;
forceClose(): void;
protected _onSocketOpen(event: Event): Promise<void>;

@@ -85,2 +88,3 @@ protected _onSocketError(event: Event): void;

private _clearTimers;
private _clearPendingRequests;
protected _onSocketMessage(event: MessageEvent): void | Promise<void>;

@@ -87,0 +91,0 @@ dispatch(_payload: PayloadAction<any>): void;

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

import { uuid, setLogger, getLogger, isGlobalEvent, toExternalJSON, toSnakeCaseKeys, toLocalEvent, toSyntheticEvent, extendComponent, validateEventsToSubscribe, toInternalEventName, toInternalAction, serializeableProxy, timeoutPromise, debounce } from './utils';
import { uuid, setLogger, getLogger, isGlobalEvent, toExternalJSON, toSnakeCaseKeys, toLocalEvent, toSyntheticEvent, extendComponent, validateEventsToSubscribe, toInternalEventName, toInternalAction, serializeableProxy, timeoutPromise, debounce, CloseEvent } from './utils';
import { BaseSession } from './BaseSession';

@@ -12,3 +12,3 @@ import { BaseJWTSession } from './BaseJWTSession';

import { MEMBER_UPDATED_EVENTS, INTERNAL_MEMBER_UPDATED_EVENTS } from './types/videoMember';
export { uuid, setLogger, getLogger, BaseSession, BaseJWTSession, BaseComponent, BaseConsumer, BaseClient, connect, configureStore, EventEmitter, extendComponent, validateEventsToSubscribe, getEventEmitter, isGlobalEvent, toExternalJSON, toSnakeCaseKeys, toLocalEvent, toInternalEventName, toInternalAction, serializeableProxy, toSyntheticEvent, GLOBAL_VIDEO_EVENTS, MEMBER_UPDATED_EVENTS, INTERNAL_MEMBER_UPDATED_EVENTS, findNamespaceInPayload, timeoutPromise, debounce, };
export { uuid, setLogger, getLogger, BaseSession, BaseJWTSession, BaseComponent, BaseConsumer, BaseClient, connect, configureStore, EventEmitter, extendComponent, validateEventsToSubscribe, getEventEmitter, isGlobalEvent, toExternalJSON, toSnakeCaseKeys, toLocalEvent, toInternalEventName, toInternalAction, serializeableProxy, toSyntheticEvent, GLOBAL_VIDEO_EVENTS, MEMBER_UPDATED_EVENTS, INTERNAL_MEMBER_UPDATED_EVENTS, findNamespaceInPayload, timeoutPromise, debounce, CloseEvent, };
export * from './redux/features/component/componentSlice';

@@ -15,0 +15,0 @@ export * from './redux/features/session/sessionSlice';

@@ -8,3 +8,3 @@ import { sagaEffects, SDKWorker, SDKWorkerParams, VideoMemberUpdatedEventParams } from '..';

payload: Error | undefined;
} | import("..").MapToPubSubShape<import("..").VideoManagerRoomsSubscribedEvent> | import("..").MapToPubSubShape<import("..").VideoManagerRoomEvent> | import("..").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("..").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("..").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("..").MapToPubSubShape<import("..").ChatMemberLeftEvent> | import("..").MapToPubSubShape<import("..").PubSubChannelMessageEvent> | import("..").TaskAction | import("..").MapToPubSubShape<import("..").MessagingStateEvent> | import("..").MapToPubSubShape<import("..").MessageUpdatedEvent> | import("..").MapToPubSubShape<import("..").MessagingReceiveEvent> | import("..").MapToPubSubShape<import("..").MessageReceivedEvent> | import("..").MapToPubSubShape<import("..").CallingCallDialEvent> | import("..").MapToPubSubShape<import("..").CallingCallStateEvent> | import("..").MapToPubSubShape<import("..").CallingCallReceiveEvent> | import("..").MapToPubSubShape<import("..").CallingCallPlayEvent> | import("..").MapToPubSubShape<import("..").CallingCallRecordEvent> | import("..").MapToPubSubShape<import("..").CallingCallCollectEvent> | import("..").MapToPubSubShape<import("..").CallingCallTapEvent> | import("..").MapToPubSubShape<import("..").CallingCallConnectEvent> | import("..").MapToPubSubShape<import("..").CallingCallSendDigitsEvent> | import("..").MapToPubSubShape<import("..").CallingCallDetectEvent> | import("..").MapToPubSubShape<import("..").CallReceivedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackStartedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackEndedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingStartedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingEndedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingFailedEvent> | import("..").MapToPubSubShape<import("..").CallPromptStartedEvent> | import("..").MapToPubSubShape<import("..").CallPromptStartOfInputEvent> | import("..").MapToPubSubShape<import("..").CallPromptUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallPromptEndedEvent> | import("..").MapToPubSubShape<import("..").CallPromptFailedEvent> | import("..").MapToPubSubShape<import("..").CallTapStartedEvent> | import("..").MapToPubSubShape<import("..").CallTapEndedEvent> | import("..").MapToPubSubShape<import("..").CallConnectConnectingEvent> | import("..").MapToPubSubShape<import("..").CallConnectConnectedEvent> | import("..").MapToPubSubShape<import("..").CallConnectDisconnectedEvent> | import("..").MapToPubSubShape<import("..").CallConnectFailedEvent> | import("..").MapToPubSubShape<import("..").CallDetectStartedEvent> | import("..").MapToPubSubShape<import("..").CallDetectUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallDetectEndedEvent> | import("..").MapToPubSubShape<import("..").CallCollectStartedEvent> | import("..").MapToPubSubShape<import("..").CallCollectStartOfInputEvent> | import("..").MapToPubSubShape<import("..").CallCollectUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallCollectEndedEvent> | import("..").MapToPubSubShape<import("..").CallCollectFailedEvent>>, void, unknown>;
} | import("..").MapToPubSubShape<import("..").VideoManagerRoomsSubscribedEvent> | import("..").MapToPubSubShape<import("..").VideoManagerRoomEvent> | import("..").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("..").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("..").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("..").MapToPubSubShape<import("..").ChatMemberLeftEvent> | import("..").MapToPubSubShape<import("..").PubSubChannelMessageEvent> | import("..").TaskAction | import("..").MapToPubSubShape<import("..").MessagingStateEvent> | import("..").MapToPubSubShape<import("..").MessageUpdatedEvent> | import("..").MapToPubSubShape<import("..").MessagingReceiveEvent> | import("..").MapToPubSubShape<import("..").MessageReceivedEvent> | import("..").MapToPubSubShape<import("..").CallingCallDialEvent> | import("..").MapToPubSubShape<import("..").CallingCallStateEvent> | import("..").MapToPubSubShape<import("..").CallingCallReceiveEvent> | import("..").MapToPubSubShape<import("..").CallingCallPlayEvent> | import("..").MapToPubSubShape<import("..").CallingCallRecordEvent> | import("..").MapToPubSubShape<import("..").CallingCallCollectEvent> | import("..").MapToPubSubShape<import("..").CallingCallTapEvent> | import("..").MapToPubSubShape<import("..").CallingCallConnectEvent> | import("..").MapToPubSubShape<import("..").CallingCallSendDigitsEvent> | import("..").MapToPubSubShape<import("..").CallingCallDetectEvent> | import("..").MapToPubSubShape<import("..").CallReceivedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackStartedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackEndedEvent> | import("..").MapToPubSubShape<import("..").CallPlaybackFailedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingStartedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingEndedEvent> | import("..").MapToPubSubShape<import("..").CallRecordingFailedEvent> | import("..").MapToPubSubShape<import("..").CallPromptStartedEvent> | import("..").MapToPubSubShape<import("..").CallPromptStartOfInputEvent> | import("..").MapToPubSubShape<import("..").CallPromptUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallPromptEndedEvent> | import("..").MapToPubSubShape<import("..").CallPromptFailedEvent> | import("..").MapToPubSubShape<import("..").CallTapStartedEvent> | import("..").MapToPubSubShape<import("..").CallTapEndedEvent> | import("..").MapToPubSubShape<import("..").CallConnectConnectingEvent> | import("..").MapToPubSubShape<import("..").CallConnectConnectedEvent> | import("..").MapToPubSubShape<import("..").CallConnectDisconnectedEvent> | import("..").MapToPubSubShape<import("..").CallConnectFailedEvent> | import("..").MapToPubSubShape<import("..").CallDetectStartedEvent> | import("..").MapToPubSubShape<import("..").CallDetectUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallDetectEndedEvent> | import("..").MapToPubSubShape<import("..").CallCollectStartedEvent> | import("..").MapToPubSubShape<import("..").CallCollectStartOfInputEvent> | import("..").MapToPubSubShape<import("..").CallCollectUpdatedEvent> | import("..").MapToPubSubShape<import("..").CallCollectEndedEvent> | import("..").MapToPubSubShape<import("..").CallCollectFailedEvent>>, void, unknown>;
export declare const MEMBER_POSITION_COMPOUND_EVENTS: Map<any, any>;

@@ -11,0 +11,0 @@ export declare const memberPositionWorker: SDKWorker<any>;

import { createAction, Action } from './toolkit';
import { JSONRPCRequest, SessionAuthError } from '../utils/interfaces';
import type { JSONRPCRequest, SessionAuthError } from '../utils/interfaces';
import { ExecuteActionParams } from './interfaces';

@@ -28,2 +28,3 @@ import { EventEmitter } from '..';

export declare const sessionExpiringAction: import("./toolkit").ActionCreatorWithoutPayload<"session.connected" | "session.disconnected" | "session.reconnecting" | "session.unknown" | "session.idle" | "session.auth_error" | "session.expiring">;
export declare const sessionForceCloseAction: import("./toolkit").ActionCreatorWithoutPayload<"session.forceClose">;
export declare const makeCustomSagaAction: (id: string, action: Action) => {

@@ -30,0 +31,0 @@ type: string;

@@ -24,3 +24,3 @@ import type { SagaIterator } from '@redux-saga/types';

payload: Error | undefined;
} | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomsSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").PubSubChannelMessageEvent> | import("..").TaskAction | import("./interfaces").MapToPubSubShape<import("..").MessagingStateEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").MessagingReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDialEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallStateEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallPlayEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallRecordEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallCollectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallTapEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallConnectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallSendDigitsEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDetectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartOfInputEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectingEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectDisconnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectStartOfInputEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectFailedEvent>> | import("@redux-saga/core/effects").CallEffect<void> | import("@redux-saga/core/effects").PutEffect<{
} | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomsSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").PubSubChannelMessageEvent> | import("..").TaskAction | import("./interfaces").MapToPubSubShape<import("..").MessagingStateEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").MessagingReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDialEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallStateEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallPlayEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallRecordEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallCollectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallTapEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallConnectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallSendDigitsEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDetectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartOfInputEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectingEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectDisconnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectStartOfInputEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallCollectFailedEvent>> | import("@redux-saga/core/effects").CallEffect<void> | import("@redux-saga/core/effects").PutEffect<{
payload: import("../utils/interfaces").RPCConnectResult;

@@ -27,0 +27,0 @@ type: string;

@@ -30,2 +30,3 @@ import type { SwEvent } from '.';

export declare type CallPlaybackEnded = 'playback.ended';
export declare type CallPlaybackFailed = 'playback.failed';
export declare type CallRecordingStarted = 'recording.started';

@@ -57,3 +58,3 @@ export declare type CallRecordingUpdated = 'recording.updated';

*/
export declare type VoiceCallEventNames = CallCreated | CallEnded | CallPlaybackStarted | CallPlaybackUpdated | CallPlaybackEnded | CallRecordingStarted | CallRecordingUpdated | CallRecordingEnded | CallRecordingFailed | CallPromptStarted | CallPromptUpdated | CallPromptEnded | CallPromptFailed | CallTapStarted | CallTapEnded | CallConnectConnecting | CallConnectConnected | CallConnectDisconnected | CallConnectFailed | CallDetectStarted | CallDetectUpdated | CallDetectEnded | CallCollectStarted | CallCollectUpdated | CallCollectEnded | CallCollectFailed;
export declare type VoiceCallEventNames = CallCreated | CallEnded | CallPlaybackStarted | CallPlaybackUpdated | CallPlaybackEnded | CallPlaybackFailed | CallRecordingStarted | CallRecordingUpdated | CallRecordingEnded | CallRecordingFailed | CallPromptStarted | CallPromptUpdated | CallPromptEnded | CallPromptFailed | CallTapStarted | CallTapEnded | CallConnectConnecting | CallConnectConnected | CallConnectDisconnected | CallConnectFailed | CallDetectStarted | CallDetectUpdated | CallDetectEnded | CallCollectStarted | CallCollectUpdated | CallCollectEnded | CallCollectFailed;
/**

@@ -176,3 +177,2 @@ * List of internal events

initialTimeout?: number;
partialResults?: boolean;
};

@@ -182,3 +182,2 @@ export declare type VoiceCallPromptAudioMethodParams = SpeechOrDigits & OmitType<VoiceCallPlayAudioParams> & {

initialTimeout?: number;
partialResults?: boolean;
};

@@ -188,3 +187,2 @@ export declare type VoiceCallPromptRingtoneMethodParams = SpeechOrDigits & OmitType<VoiceCallPlayRingtoneParams> & {

initialTimeout?: number;
partialResults?: boolean;
};

@@ -194,3 +192,2 @@ export declare type VoiceCallPromptTTSMethodParams = SpeechOrDigits & OmitType<VoiceCallPlayTTSParams> & {

initialTimeout?: number;
partialResults?: boolean;
};

@@ -226,5 +223,5 @@ declare type TapCodec = 'OPUS' | 'PCMA' | 'PCMU';

partialResults?: boolean;
continuous: boolean;
sendStartOfInput: boolean;
startInputTimers: boolean;
continuous?: boolean;
sendStartOfInput?: boolean;
startInputTimers?: boolean;
};

@@ -646,2 +643,3 @@ export declare type VoiceCallConnectMethodParams = VoiceDeviceBuilder | {

export declare type CallingCallPlayState = 'playing' | 'paused' | 'error' | 'finished';
export declare type CallingCallPlayEndState = Exclude<CallingCallPlayState, 'playing' | 'paused'>;
export interface CallingCallPlayEventParams {

@@ -661,2 +659,3 @@ node_id: string;

export declare type CallingCallRecordState = 'recording' | 'no_input' | 'finished';
export declare type CallingCallRecordEndState = Exclude<CallingCallRecordState, 'recording'>;
export interface CallingCallRecordEventParams {

@@ -706,2 +705,3 @@ node_id: string;

export declare type CallingCallCollectResult = CallingCallCollectResultError | CallingCallCollectResultNoInput | CallingCallCollectResultNoMatch | CallingCallCollectResultStartOfInput | CallingCallCollectResultDigit | CallingCallCollectResultSpeech;
export declare type CallingCallCollectEndState = Exclude<CallingCallCollectResult['type'], 'start_of_input'>;
export interface CallingCallCollectEventParams {

@@ -722,2 +722,3 @@ node_id: string;

export declare type CallingCallTapState = 'tapping' | 'finished';
export declare type CallingCallTapEndState = Exclude<CallingCallTapState, 'tapping'>;
interface CallingCallTapDeviceRTP {

@@ -797,2 +798,3 @@ type: 'rtp';

declare type CallingCallDetectState = 'finished' | 'error';
export declare type CallingCallDetectEndState = CallingCallDetectState;
interface CallingCallDetectFax {

@@ -863,2 +865,11 @@ type: 'fax';

/**
* 'calling.playback.failed'
*/
export interface CallPlaybackFailedEvent extends SwEvent {
event_type: ToInternalVoiceEvent<CallPlaybackFailed>;
params: CallingCallPlayEventParams & {
tag: string;
};
}
/**
* 'calling.call.received'

@@ -1071,4 +1082,4 @@ */

}
export declare type VoiceCallEvent = CallingCallDialEvent | CallingCallStateEvent | CallingCallReceiveEvent | CallingCallPlayEvent | CallingCallRecordEvent | CallingCallCollectEvent | CallingCallTapEvent | CallingCallConnectEvent | CallingCallSendDigitsEvent | CallingCallDetectEvent | CallReceivedEvent | CallPlaybackStartedEvent | CallPlaybackUpdatedEvent | CallPlaybackEndedEvent | CallRecordingStartedEvent | CallRecordingUpdatedEvent | CallRecordingEndedEvent | CallRecordingFailedEvent | CallPromptStartedEvent | CallPromptStartOfInputEvent | CallPromptUpdatedEvent | CallPromptEndedEvent | CallPromptFailedEvent | CallTapStartedEvent | CallTapEndedEvent | CallConnectConnectingEvent | CallConnectConnectedEvent | CallConnectDisconnectedEvent | CallConnectFailedEvent | CallDetectStartedEvent | CallDetectUpdatedEvent | CallDetectEndedEvent | CallCollectStartedEvent | CallCollectStartOfInputEvent | CallCollectUpdatedEvent | CallCollectEndedEvent | CallCollectFailedEvent;
export declare type VoiceCallEventParams = CallingCallDialEventParams | CallingCallStateEventParams | CallingCallReceiveEventParams | CallingCallPlayEventParams | CallingCallRecordEventParams | CallingCallCollectEventParams | CallingCallTapEventParams | CallingCallConnectEventParams | CallingCallSendDigitsEventParams | CallingCallDetectEventParams | CallReceivedEvent['params'] | CallPlaybackStartedEvent['params'] | CallPlaybackUpdatedEvent['params'] | CallPlaybackEndedEvent['params'] | CallRecordingStartedEvent['params'] | CallRecordingUpdatedEvent['params'] | CallRecordingEndedEvent['params'] | CallRecordingFailedEvent['params'] | CallPromptStartedEvent['params'] | CallPromptStartOfInputEvent['params'] | CallPromptUpdatedEvent['params'] | CallPromptEndedEvent['params'] | CallPromptFailedEvent['params'] | CallTapStartedEvent['params'] | CallTapEndedEvent['params'] | CallConnectConnectingEvent['params'] | CallConnectConnectedEvent['params'] | CallConnectDisconnectedEvent['params'] | CallConnectFailedEvent['params'] | CallDetectStartedEvent['params'] | CallDetectUpdatedEvent['params'] | CallDetectEndedEvent['params'] | CallCollectStartedEvent['params'] | CallCollectStartOfInputEvent['params'] | CallCollectUpdatedEvent['params'] | CallCollectEndedEvent['params'] | CallCollectFailedEvent['params'];
export declare type VoiceCallEvent = CallingCallDialEvent | CallingCallStateEvent | CallingCallReceiveEvent | CallingCallPlayEvent | CallingCallRecordEvent | CallingCallCollectEvent | CallingCallTapEvent | CallingCallConnectEvent | CallingCallSendDigitsEvent | CallingCallDetectEvent | CallReceivedEvent | CallPlaybackStartedEvent | CallPlaybackUpdatedEvent | CallPlaybackEndedEvent | CallPlaybackFailedEvent | CallRecordingStartedEvent | CallRecordingUpdatedEvent | CallRecordingEndedEvent | CallRecordingFailedEvent | CallPromptStartedEvent | CallPromptStartOfInputEvent | CallPromptUpdatedEvent | CallPromptEndedEvent | CallPromptFailedEvent | CallTapStartedEvent | CallTapEndedEvent | CallConnectConnectingEvent | CallConnectConnectedEvent | CallConnectDisconnectedEvent | CallConnectFailedEvent | CallDetectStartedEvent | CallDetectUpdatedEvent | CallDetectEndedEvent | CallCollectStartedEvent | CallCollectStartOfInputEvent | CallCollectUpdatedEvent | CallCollectEndedEvent | CallCollectFailedEvent;
export declare type VoiceCallEventParams = CallingCallDialEventParams | CallingCallStateEventParams | CallingCallReceiveEventParams | CallingCallPlayEventParams | CallingCallRecordEventParams | CallingCallCollectEventParams | CallingCallTapEventParams | CallingCallConnectEventParams | CallingCallSendDigitsEventParams | CallingCallDetectEventParams | CallReceivedEvent['params'] | CallPlaybackStartedEvent['params'] | CallPlaybackUpdatedEvent['params'] | CallPlaybackEndedEvent['params'] | CallPlaybackFailedEvent['params'] | CallRecordingStartedEvent['params'] | CallRecordingUpdatedEvent['params'] | CallRecordingEndedEvent['params'] | CallRecordingFailedEvent['params'] | CallPromptStartedEvent['params'] | CallPromptStartOfInputEvent['params'] | CallPromptUpdatedEvent['params'] | CallPromptEndedEvent['params'] | CallPromptFailedEvent['params'] | CallTapStartedEvent['params'] | CallTapEndedEvent['params'] | CallConnectConnectingEvent['params'] | CallConnectConnectedEvent['params'] | CallConnectDisconnectedEvent['params'] | CallConnectFailedEvent['params'] | CallDetectStartedEvent['params'] | CallDetectUpdatedEvent['params'] | CallDetectEndedEvent['params'] | CallCollectStartedEvent['params'] | CallCollectStartOfInputEvent['params'] | CallCollectUpdatedEvent['params'] | CallCollectEndedEvent['params'] | CallCollectFailedEvent['params'];
export declare type VoiceCallAction = MapToPubSubShape<VoiceCallEvent>;

@@ -1075,0 +1086,0 @@ export declare type VoiceCallJSONRPCMethod = 'calling.dial' | 'calling.end' | 'calling.answer' | 'calling.play' | 'calling.play.pause' | 'calling.play.resume' | 'calling.play.volume' | 'calling.play.stop' | 'calling.record' | 'calling.record.stop' | 'calling.play_and_collect' | 'calling.play_and_collect.stop' | 'calling.play_and_collect.volume' | 'calling.tap' | 'calling.tap.stop' | 'calling.connect' | 'calling.disconnect' | 'calling.send_digits' | 'calling.detect' | 'calling.detect.stop' | 'calling.collect' | 'calling.collect.stop' | 'calling.collect.start_input_timers';

@@ -13,2 +13,3 @@ import { JSONRPCRequest, JSONRPCResponse } from '..';

export * from './debounce';
export * from './CloseEvent';
export declare const mutateStorageKey: (key: string) => string;

@@ -15,0 +16,0 @@ export declare const safeParseJson: <T>(value: T) => Object | T;

@@ -143,2 +143,3 @@ /// <reference types="node" />

export declare type SessionEvents = `session.${SessionStatus}`;
export declare type SessionActions = 'session.forceClose';
export declare type CompoundEvents = 'compound_event:attach';

@@ -145,0 +146,0 @@ /**

@@ -12,2 +12,6 @@ import { BaseJWTSession, SessionOptions, SwAuthorizationState } from '@signalwire/core';

};
CloseEventConstructor: {
new (type: string, eventInitDict?: CloseEventInit | undefined): CloseEvent;
prototype: CloseEvent;
};
agent: string;

@@ -14,0 +18,0 @@ constructor(options: SessionOptions);

import { BaseConnectionContract, BaseConnectionState, RoomLeft } from '@signalwire/core';
import { BaseConnection } from '@signalwire/webrtc';
import { BaseConnection, MediaEvent } from '@signalwire/webrtc';
import { RoomSessionDeviceMethods } from './utils/interfaces';
declare type RoomSessionDeviceEventsHandlerMap = Record<BaseConnectionState, (params: RoomSessionDevice) => void> & Record<RoomLeft, (params: void) => void>;
declare type RoomSessionDeviceEventsHandlerMap = Record<BaseConnectionState, (params: RoomSessionDevice) => void> & Record<RoomLeft, (params: void) => void> & Record<MediaEvent, () => void>;
export declare type RoomSessionDeviceEvents = {

@@ -6,0 +6,0 @@ [k in keyof RoomSessionDeviceEventsHandlerMap]: RoomSessionDeviceEventsHandlerMap[k];

import { BaseConnectionContract, BaseConnectionState, RoomLeft } from '@signalwire/core';
import { BaseConnection } from '@signalwire/webrtc';
import { BaseConnection, MediaEvent } from '@signalwire/webrtc';
import { RoomScreenShareMethods } from './utils/interfaces';
declare type RoomSessionScreenShareEventsHandlerMap = Record<BaseConnectionState, (params: RoomSessionScreenShare) => void> & Record<RoomLeft, (params: void) => void>;
declare type RoomSessionScreenShareEventsHandlerMap = Record<BaseConnectionState, (params: RoomSessionScreenShare) => void> & Record<RoomLeft, (params: void) => void> & Record<MediaEvent, () => void>;
export declare type RoomSessionScreenShareEvents = {

@@ -6,0 +6,0 @@ [k in keyof RoomSessionScreenShareEventsHandlerMap]: RoomSessionScreenShareEventsHandlerMap[k];

import type { Rooms, BaseConnectionState, InternalVideoLayout, VideoLayoutEventNames, VideoRoomSessionEventNames, VideoRoomEventParams, InternalVideoMemberEntity, InternalVideoMemberEntityUpdated, VideoMemberEventNames, MemberUpdated, MemberUpdatedEventNames, MemberTalkingEventNames, VideoMemberTalkingEventParams, RTCTrackEventName, VideoRecordingEventNames, VideoPlaybackEventNames, RoomSessionRecording, RoomSessionPlayback, VideoRoomSessionContract, OnlyFunctionProperties, MemberListUpdated, VideoPositions, RoomAudienceCount, VideoRoomAudienceCountEventParams, RoomLeft, VideoStreamEventNames, RoomSessionStream, RoomJoined, RoomSubscribed, VideoRoomSubscribedEventParams, VideoAuthorization } from '@signalwire/core';
import type { MediaEvent } from '@signalwire/webrtc';
import type { RoomSession } from '../RoomSession';

@@ -22,3 +23,3 @@ import type { RoomSessionDevice } from '../RoomSessionDevice';

/** @deprecated */
export declare type DeprecatedMemberUpdatableProps = typeof INTERNAL_MEMBER_UPDATED_EVENTS[number];
export declare type DeprecatedMemberUpdatableProps = (typeof INTERNAL_MEMBER_UPDATED_EVENTS)[number];
/** @deprecated */

@@ -43,3 +44,3 @@ export declare type DeprecatedVideoMemberHandlerParams = {

layout: VideoLayout;
}) => void> & Record<Exclude<VideoMemberEventNames, MemberUpdated | MemberUpdatedEventNames | MemberListUpdated>, (params: VideoMemberHandlerParams) => void> & Record<Extract<VideoMemberEventNames, MemberUpdated | MemberUpdatedEventNames>, (params: VideoMemberUpdatedHandlerParams) => void> & Record<Extract<VideoMemberEventNames, MemberListUpdated>, (params: VideoMemberListUpdatedParams) => void> & Record<DeprecatedMemberUpdatableProps, (params: DeprecatedVideoMemberHandlerParams) => void> & Record<MemberTalkingEventNames, (params: VideoMemberTalkingEventParams) => void> & Record<Exclude<VideoRoomSessionEventNames, RoomLeft | RoomJoined | RoomSubscribed>, (params: VideoRoomEventParams) => void> & Record<RoomJoined | RoomSubscribed, (params: VideoRoomSubscribedEventParams) => void> & Record<RoomLeft, (params: void) => void> & Record<RoomAudienceCount, (params: VideoRoomAudienceCountEventParams) => void> & Record<RTCTrackEventName, (event: RTCTrackEvent) => void> & Record<VideoRecordingEventNames, (recording: RoomSessionRecording) => void> & Record<VideoPlaybackEventNames, (recording: RoomSessionPlayback) => void> & Record<BaseConnectionState, (params: RoomSession) => void> & Record<VideoStreamEventNames, (stream: RoomSessionStream) => void>;
}) => void> & Record<Exclude<VideoMemberEventNames, MemberUpdated | MemberUpdatedEventNames | MemberListUpdated>, (params: VideoMemberHandlerParams) => void> & Record<Extract<VideoMemberEventNames, MemberUpdated | MemberUpdatedEventNames>, (params: VideoMemberUpdatedHandlerParams) => void> & Record<Extract<VideoMemberEventNames, MemberListUpdated>, (params: VideoMemberListUpdatedParams) => void> & Record<DeprecatedMemberUpdatableProps, (params: DeprecatedVideoMemberHandlerParams) => void> & Record<MemberTalkingEventNames, (params: VideoMemberTalkingEventParams) => void> & Record<Exclude<VideoRoomSessionEventNames, RoomLeft | RoomJoined | RoomSubscribed>, (params: VideoRoomEventParams) => void> & Record<RoomJoined | RoomSubscribed, (params: VideoRoomSubscribedEventParams) => void> & Record<RoomLeft, (params: void) => void> & Record<MediaEvent, () => void> & Record<RoomAudienceCount, (params: VideoRoomAudienceCountEventParams) => void> & Record<RTCTrackEventName, (event: RTCTrackEvent) => void> & Record<VideoRecordingEventNames, (recording: RoomSessionRecording) => void> & Record<VideoPlaybackEventNames, (recording: RoomSessionPlayback) => void> & Record<BaseConnectionState, (params: RoomSession) => void> & Record<VideoStreamEventNames, (stream: RoomSessionStream) => void>;
export declare type RoomSessionObjectEvents = {

@@ -46,0 +47,0 @@ [k in keyof RoomSessionObjectEventsHandlerMap]: RoomSessionObjectEventsHandlerMap[k];

@@ -11,5 +11,6 @@ import { BaseComponent, BaseComponentOptions, BaseConnectionState, Rooms, EventEmitter, BaseConnectionContract } from '@signalwire/core';

}
declare type EventsHandlerMapping = Record<BaseConnectionState, (params: any) => void>;
export declare type MediaEvent = 'media.connected' | 'media.reconnecting' | 'media.disconnected';
declare type EventsHandlerMapping = Record<BaseConnectionState, (params: any) => void> & Record<MediaEvent, () => void>;
export declare type BaseConnectionStateEventTypes = {
[k in BaseConnectionState]: EventsHandlerMapping[k];
[k in keyof EventsHandlerMapping]: EventsHandlerMapping[k];
};

@@ -34,2 +35,4 @@ export declare type BaseConnectionOptions<EventTypes extends EventEmitter.ValidEventTypes> = ConnectionOptions & BaseComponentOptions<EventTypes & BaseConnectionStateEventTypes>;

private rtcPeerMap;
private sessionAuthTask;
private resuming;
constructor(options: BaseConnectionOptions<EventTypes & BaseConnectionStateEventTypes>);

@@ -106,2 +109,7 @@ get id(): string;

onLocalSDPReady(rtcPeer: RTCPeer<EventTypes>): void | Promise<void>;
/** @internal */
_closeWSConnection(): void;
private _watchSessionAuth;
/** @internal */
resume(): Promise<void>;
/**

@@ -108,0 +116,0 @@ * Send the `verto.invite` only if the state is either `new` or `requesting`

export { getDevices, getCameraDevices, getMicrophoneDevices, getSpeakerDevices, getDevicesWithPermissions, getCameraDevicesWithPermissions, getMicrophoneDevicesWithPermissions, getSpeakerDevicesWithPermissions, assureDeviceId, assureVideoDevice, assureAudioInDevice, assureAudioOutDevice, createDeviceWatcher, createMicrophoneDeviceWatcher, createSpeakerDeviceWatcher, createCameraDeviceWatcher, createMicrophoneAnalyzer, } from './utils/deviceHelpers';
export { supportsMediaDevices, supportsGetUserMedia, supportsGetDisplayMedia, getUserMedia, getDisplayMedia, enumerateDevices, enumerateDevicesByKind, getSupportedConstraints, streamIsValid, supportsMediaOutput, setMediaElementSinkId, stopStream, stopTrack, checkPermissions, checkCameraPermissions, checkMicrophonePermissions, checkSpeakerPermissions, requestPermissions, } from './utils';
export * from './utils/interfaces';
export { BaseConnection, BaseConnectionOptions, BaseConnectionStateEventTypes, } from './BaseConnection';
export { BaseConnection, BaseConnectionOptions, BaseConnectionStateEventTypes, MediaEvent, } from './BaseConnection';
//# sourceMappingURL=index.d.ts.map

@@ -11,2 +11,8 @@ import { EventEmitter } from '@signalwire/core';

private _negotiating;
private _processingRemoteSDP;
private needResume;
private _restartingIce;
private _watchMediaPacketsTimer;
private _connectionStateTimer;
private _mediaWatcher;
/**

@@ -23,2 +29,3 @@ * Both of these properties are used to have granular

constructor(call: BaseConnection<EventTypes>, type: RTCSdpType);
get watchMediaPacketsTimeout(): number;
get localStream(): MediaStream | undefined;

@@ -33,2 +40,4 @@ set localStream(stream: MediaStream | undefined);

get localAudioTrack(): MediaStreamTrack | null;
get remoteVideoTrack(): MediaStreamTrack | null;
get remoteAudioTrack(): MediaStreamTrack | null;
get hasAudioSender(): boolean;

@@ -40,2 +49,4 @@ get hasVideoSender(): boolean;

get localSdp(): string | undefined;
get remoteSdp(): string | undefined;
get hasIceServers(): boolean;
stopTrackSender(kind: string): void;

@@ -47,2 +58,7 @@ restoreTrackSender(kind: string): Promise<void>;

restartIceWithRelayOnly(): void;
restartIce(): void;
triggerResume(): void;
private resetNeedResume;
stopWatchMediaPackets(): void;
startWatchMediaPackets(): void;
applyMediaConstraints(kind: string, constraints: MediaTrackConstraints): Promise<void>;

@@ -64,2 +80,5 @@ private _getSenderByKind;

private _sdpReady;
private _sdpIsValid;
private _forceNegotiation;
private _onIceTimeout;
private _onIce;

@@ -70,3 +89,7 @@ private _setLocalDescription;

private _attachListeners;
private clearTimers;
private clearConnectionStateTimer;
private clearWatchMediaPacketsTimer;
private emitMediaConnected;
}
//# sourceMappingURL=RTCPeer.d.ts.map

@@ -80,2 +80,10 @@ import type { VideoPositions } from '@signalwire/core';

/** @internal */
maxIceGatheringTimeout?: number;
/** @internal */
maxConnectionStateTimeout?: number;
/** @internal */
watchMediaPackets?: boolean;
/** @internal */
watchMediaPacketsTimeout?: number;
/** @internal */
pingSupported?: boolean;

@@ -82,0 +90,0 @@ /** @internal */

@@ -12,2 +12,15 @@ /**

export declare const sdpBitrateHack: (sdp: string, max: number, min: number, start: number) => string;
/**
* Check for srflx, prflx or relay candidates
* TODO: improve the logic check private/public IP for typ host
*
* @param sdp string
* @returns boolean
*/
export declare const sdpHasValidCandidates: (sdp: string) => boolean;
/**
* Remove "a=candidate" lines with local candidates
* https://bloggeek.me/psa-mdns-and-local-ice-candidates-are-coming/
*/
export declare const sdpRemoveLocalCandidates: (sdp: string) => string;
//# sourceMappingURL=sdpHelpers.d.ts.map
export * from './vertoEventWorker';
export * from './roomSubscribedWorker';
export * from './promoteDemoteWorker';
export * from './sessionAuthWorker';
//# sourceMappingURL=index.d.ts.map

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "3.18.0-dev.202301191718.e2c475a.0",
"version": "3.18.0-dev.202302281452.07644c3.0",
"main": "dist/index.js",

@@ -47,4 +47,4 @@ "module": "dist/index.esm.js",

"dependencies": {
"@signalwire/core": "3.13.0-dev.202301191718.e2c475a.0",
"@signalwire/webrtc": "3.5.10-dev.202301191718.e2c475a.0",
"@signalwire/core": "3.13.0-dev.202302281452.07644c3.0",
"@signalwire/webrtc": "3.5.10-dev.202302281452.07644c3.0",
"jwt-decode": "^3.1.2"

@@ -51,0 +51,0 @@ },

@@ -97,4 +97,6 @@ import {

room.on('layout.changed', (params) => {
getLogger().debug('Received layout.changed')
let hasVideoTrack = false
let lastLayoutChanged: any = null
const _processLayoutChanged = (params: any) => {
// FIXME: expose a method on BaseConnection

@@ -110,2 +112,12 @@ if (room.peer?.hasVideoSender && room.localStream) {

}
}
room.on('layout.changed', (params) => {
getLogger().debug('Received layout.changed - videoTrack', hasVideoTrack)
if (hasVideoTrack) {
_processLayoutChanged(params)
return
}
lastLayoutChanged = params
})

@@ -166,2 +178,7 @@

})
hasVideoTrack = true
if (lastLayoutChanged) {
_processLayoutChanged(lastLayoutChanged)
}
break

@@ -362,2 +379,3 @@ }

getLogger().debug('MCU readyState 1 >>', element.readyState)
if (element.readyState === HTMLMediaElement.HAVE_NOTHING) {

@@ -367,2 +385,3 @@ getLogger().debug('Wait for the MCU to be ready')

}
getLogger().debug('MCU is ready..')

@@ -369,0 +388,0 @@ const rootElementResizeObserver = createRootElementResizeObserver({

@@ -0,1 +1,5 @@

/**
* @jest-environment jsdom
*/
import { JWTSession } from './JWTSession'

@@ -2,0 +6,0 @@

@@ -12,2 +12,3 @@ import jwtDecode from 'jwt-decode'

public WebSocketConstructor = WebSocket
public CloseEventConstructor = CloseEvent
public agent = process.env.SDK_PKG_AGENT!

@@ -114,3 +115,3 @@

)
return `${jwtPayload?.r}-${jwtPayload?.ja}`
return `${jwtPayload?.r}`
} catch (e) {

@@ -117,0 +118,0 @@ if (process.env.NODE_ENV !== 'production') {

@@ -8,3 +8,3 @@ import {

} from '@signalwire/core'
import { BaseConnection } from '@signalwire/webrtc'
import { BaseConnection, MediaEvent } from '@signalwire/webrtc'
import { RoomSessionDeviceMethods } from './utils/interfaces'

@@ -16,3 +16,4 @@

> &
Record<RoomLeft, (params: void) => void>
Record<RoomLeft, (params: void) => void> &
Record<MediaEvent, () => void>

@@ -19,0 +20,0 @@ export type RoomSessionDeviceEvents = {

@@ -8,3 +8,3 @@ import {

} from '@signalwire/core'
import { BaseConnection } from '@signalwire/webrtc'
import { BaseConnection, MediaEvent } from '@signalwire/webrtc'
import { RoomScreenShareMethods } from './utils/interfaces'

@@ -16,3 +16,4 @@

> &
Record<RoomLeft, (params: void) => void>
Record<RoomLeft, (params: void) => void> &
Record<MediaEvent, () => void>

@@ -19,0 +20,0 @@ export type RoomSessionScreenShareEvents = {

@@ -36,2 +36,3 @@ import type {

import { INTERNAL_MEMBER_UPDATABLE_PROPS } from '@signalwire/core'
import type { MediaEvent } from '@signalwire/webrtc'
import type { RoomSession } from '../RoomSession'

@@ -66,3 +67,3 @@ import type { RoomSessionDevice } from '../RoomSessionDevice'

export type DeprecatedMemberUpdatableProps =
typeof INTERNAL_MEMBER_UPDATED_EVENTS[number]
(typeof INTERNAL_MEMBER_UPDATED_EVENTS)[number]
/** @deprecated */

@@ -126,2 +127,3 @@ export type DeprecatedVideoMemberHandlerParams = {

Record<RoomLeft, (params: void) => void> &
Record<MediaEvent, () => void> &
Record<

@@ -128,0 +130,0 @@ RoomAudienceCount,

@@ -130,6 +130,9 @@ import {

if (mcuLayers && !exists) {
getLogger().debug('Build myLayer append it')
mcuLayers.appendChild(myLayer)
localOverlay.domElement = myLayer
return
}
getLogger().debug('Build myLayer >> wait next')
return

@@ -136,0 +139,0 @@ }

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 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 too big to display

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 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

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