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

@huddle01/web-core

Package Overview
Dependencies
Maintainers
0
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huddle01/web-core - npm Package Compare versions

Comparing version 2.1.9-dev.5 to 2.1.9

dist/chunk-33AP22NK.cjs

26

dist/ActiveSpeakers.d.ts
import Bot from './Bot.js';
import { EnhancedEventEmitter } from './common-js/EnhancedEventEmitter.js';
import 'mediasoup-client/lib/DataConsumer';
import 'mediasoup-client/lib/DataProducer';

@@ -19,2 +18,16 @@ type ActiveSpeakersEvent = {

/**
* Instance of the ActiveSpeakers Class; used for singleton pattern.
*/
private static __instance;
/**
* Get the instance of the ActiveSpeakers Class.
* @returns ActiveSpeakers instance.
*/
static getInstance(): ActiveSpeakers;
/**
* Create the instance of the ActiveSpeakers Class.
* @returns ActiveSpeakers instance.
*/
static createInstance(data: ActiveSpeakersOptions): ActiveSpeakers;
/**
* Room instance.

@@ -63,14 +76,7 @@ */

private __handleBotEvents;
/**
* Emit the active speakers change event.
* @param data - Data containing the peerIds of the active speakers.
*/
private __handleClosingAllEvents;
private __handleActiveSpeakerChange;
constructor(data: ActiveSpeakersOptions);
/**
* Close the active speakers instance.
*/
close: () => void;
private constructor();
}
export { type ActiveSpeakersEvent, type ActiveSpeakersOptions, ActiveSpeakers as default };

@@ -1,13 +0,18 @@

export { ActiveSpeakers_default as default } from './chunk-7ONXVTRI.js';
import './chunk-GMM2GTBP.js';
import './chunk-U3ZBI3M2.js';
import './chunk-P6ECWQ7C.js';
import './chunk-NTD5WULD.js';
import './chunk-UNAM3CMB.js';
import './chunk-SJ5FMYZU.js';
import './chunk-DFNYORIF.js';
import './chunk-WA3QABYS.js';
import './chunk-E2DU7IIE.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
ActiveSpeakers_default
} from "./chunk-UDDDPKLE.js";
import "./chunk-5N67J65H.js";
import "./chunk-QOGOTFS5.js";
import "./chunk-P6ECWQ7C.js";
import "./chunk-NTD5WULD.js";
import "./chunk-UNAM3CMB.js";
import "./chunk-SJ5FMYZU.js";
import "./chunk-DFNYORIF.js";
import "./chunk-WA3QABYS.js";
import "./chunk-E2DU7IIE.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
ActiveSpeakers_default as default
};
import { DataConsumer } from 'mediasoup-client/lib/DataConsumer';
import { DataProducer } from 'mediasoup-client/lib/DataProducer';
import { EnhancedEventEmitter } from './common-js/EnhancedEventEmitter.js';

@@ -9,12 +8,26 @@

}];
'received-volatile-data': [data: VolatileDataMessage];
'bot-error': [data: {
error: Error;
}];
'resume-consuming': [
data: {
peerId: string;
label: string;
consumerId: string;
}
];
'pause-consuming': [
data: {
peerId: string;
label: string;
consumerId: string;
}
];
};
type VolatileDataMessage = {
from: string;
payload: string;
label?: string;
to: '*';
};
declare class Bot extends EnhancedEventEmitter<BotEvents> {
/**
* Instance of the Bot Class; used for singleton pattern.
*/
private static __instance;
/**
* Bot Data Consumer

@@ -24,26 +37,10 @@ */

/**
* Bot Data Producer
* Get the instance of the Bot Class.
* @returns Bot instance.
*/
private __botDataProducer?;
constructor(data: {
dataConsumer: DataConsumer;
dataProducer?: DataProducer;
});
/**
* Register the bot data consumer event.
*/
private __registerBotDataConsumerEvent;
/**
* Register the bot data producer event.
*/
private __registerBotDataProducerEvent;
/**
* @description Send data to the bot data producer, if available
* @param data - Data to send {string}
* @returns {boolean} - Returns true if data is sent, cannot guarantee if data is received as its over UDP.
*/
sendData: (data: VolatileDataMessage) => boolean;
close: () => void;
static getInstance(): Bot;
private constructor();
setDataConsumer: (dataConsumer: DataConsumer) => void;
}
export { type BotEvents, type VolatileDataMessage, Bot as default };
export { type BotEvents, Bot as default };

@@ -1,4 +0,9 @@

export { Bot_default as default } from './chunk-6MHHX2FW.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
Bot_default
} from "./chunk-AQQIKM2E.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
Bot_default as default
};

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

import { ProtoEncodings } from './chunk-DFNYORIF.js';
import {
ProtoEncodings
} from "./chunk-DFNYORIF.js";

@@ -83,2 +85,3 @@ // src/helpers/ProtooParsing.ts

var parseToProtoRtpParameters = (rtpParameters) => {
const protoEncodings = [];
const codecs = rtpParameters.codecs;

@@ -113,3 +116,3 @@ for (const codec of codecs) {

}
new ProtoEncodings({
const protoEncoding = new ProtoEncodings({
ssrc: encoding.ssrc ? BigInt(encoding.ssrc) : void 0,

@@ -126,2 +129,3 @@ rid: encoding.rid,

});
protoEncodings.push(protoEncoding);
}

@@ -132,2 +136,6 @@ }

export { parseRouterRtpCapabilities, parseRtpParameters, parseToProtoRtpParameters };
export {
parseRouterRtpCapabilities,
parseRtpParameters,
parseToProtoRtpParameters
};

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

import { __commonJS, __toESM } from './chunk-JSBRDJBE.js';
import {
__commonJS,
__toESM
} from "./chunk-JSBRDJBE.js";

@@ -6,2 +9,3 @@ // ../../node_modules/events/events.js

"../../node_modules/events/events.js"(exports, module) {
"use strict";
var R = typeof Reflect === "object" ? Reflect : null;

@@ -339,2 +343,3 @@ var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {

}
;
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });

@@ -426,2 +431,4 @@ if (name !== "error") {

export { EnhancedEventEmitter };
export {
EnhancedEventEmitter
};

@@ -1,3 +0,7 @@

import { mainLogger } from './chunk-TOCFOGTC.js';
import { EnhancedEventEmitter } from './chunk-BW2DGP4D.js';
import {
mainLogger
} from "./chunk-TOCFOGTC.js";
import {
EnhancedEventEmitter
} from "./chunk-BW2DGP4D.js";

@@ -176,2 +180,6 @@ // src/Permissions.ts

export { Permissions_default, checkPermissions, checkProducePermissions };
export {
checkPermissions,
checkProducePermissions,
Permissions_default
};

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

import { VIDEO_CONSTRAINTS } from './chunk-Q4PETRM3.js';
import {
VIDEO_CONSTRAINTS
} from "./chunk-Q4PETRM3.js";

@@ -36,2 +38,4 @@ // src/constants/deviceConstraints.ts

export { deviceConstraints_default };
export {
deviceConstraints_default
};

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

import { deviceConstraints_default } from './chunk-FIM2WZLS.js';
import { isReactNative } from './chunk-WA3QABYS.js';
import { mainLogger } from './chunk-TOCFOGTC.js';
import { EnhancedEventEmitter } from './chunk-BW2DGP4D.js';
import {
deviceConstraints_default
} from "./chunk-FIM2WZLS.js";
import {
isReactNative
} from "./chunk-WA3QABYS.js";
import {
mainLogger
} from "./chunk-TOCFOGTC.js";
import {
EnhancedEventEmitter
} from "./chunk-BW2DGP4D.js";

@@ -428,2 +436,4 @@ // src/DeviceHandler.ts

export { DeviceHandler_default };
export {
DeviceHandler_default
};

@@ -27,2 +27,5 @@ var __create = Object.create;

export { __commonJS, __toESM };
export {
__commonJS,
__toESM
};

@@ -55,2 +55,5 @@ // src/common-js/EnhancedMap.ts

export { EnhancedMap, defaultCompareFn };
export {
defaultCompareFn,
EnhancedMap
};

@@ -1,4 +0,3 @@

import { z } from 'zod';
// src/validators/common.validators.ts
import { z } from "zod";
var ConnectionParameterSchema = z.object({

@@ -44,2 +43,7 @@ roomId: z.string({

export { ConnectionParameterSchema, DataMessageSchema, GeolocationSchema, VolatileDataMessageSchema };
export {
ConnectionParameterSchema,
GeolocationSchema,
VolatileDataMessageSchema,
DataMessageSchema
};

@@ -52,2 +52,10 @@ // src/constants/rtpConstants.ts

export { PC_PROPRIETARY_CONSTRAINTS, SCREEN_SHARING_SVC_ENCODINGS, VIDEO_CONSTRAINTS, WEBCAM_KSVC_ENCODINGS, WEBCAM_SIMULCAST_ENCODINGS, codecOptionsViaKind, encodingViaMediaType };
export {
VIDEO_CONSTRAINTS,
PC_PROPRIETARY_CONSTRAINTS,
WEBCAM_SIMULCAST_ENCODINGS,
SCREEN_SHARING_SVC_ENCODINGS,
encodingViaMediaType,
codecOptionsViaKind,
WEBCAM_KSVC_ENCODINGS
};

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

import { Message, proto3, proto2, ProtoRtpParameters } from './chunk-DFNYORIF.js';
import {
Message,
ProtoRtpParameters,
proto2,
proto3
} from "./chunk-DFNYORIF.js";

@@ -774,3 +779,3 @@ // ../protoc/dist/rtc/sctp_capabilities_pb.js

// ../protoc/dist/client/request_pb.js
(class _TestEvent extends Message {
var TestEvent = class _TestEvent extends Message {
/**

@@ -816,3 +821,3 @@ * @generated from field: required string name = 1;

}
});
};
var ConnectRoom = class _ConnectRoom extends Message {

@@ -1730,2 +1735,10 @@ /**

export { AppData, Permissions, ProtoIceParameters, ProtoRequestEvent, ProtoSctpStreamParameters, ProtoTransportSDPInfo, Request };
export {
ProtoIceParameters,
ProtoTransportSDPInfo,
AppData,
ProtoSctpStreamParameters,
Permissions,
Request,
ProtoRequestEvent
};

@@ -146,2 +146,7 @@ // src/logger.ts

export { createLogger, mainLogger, setLogLevel, setLoggerFactory };
export {
createLogger,
setLogLevel,
setLoggerFactory,
mainLogger
};

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

import { mainLogger } from './chunk-TOCFOGTC.js';
import {
mainLogger
} from "./chunk-TOCFOGTC.js";

@@ -62,2 +64,5 @@ // src/helpers/apiUtils.ts

export { RetryAbortError, apiCallWithRetry };
export {
RetryAbortError,
apiCallWithRetry
};

@@ -51,2 +51,10 @@ // src/helpers/index.ts

export { estimateSize, getMediaDeviceKind, getMediaStreamKind, getMediaTrack, isBrowser, isNode, isReactNative };
export {
getMediaStreamKind,
getMediaDeviceKind,
getMediaTrack,
estimateSize,
isBrowser,
isNode,
isReactNative
};

@@ -1,3 +0,7 @@

import { mainLogger } from './chunk-TOCFOGTC.js';
import { EnhancedEventEmitter } from './chunk-BW2DGP4D.js';
import {
mainLogger
} from "./chunk-TOCFOGTC.js";
import {
EnhancedEventEmitter
} from "./chunk-BW2DGP4D.js";

@@ -207,2 +211,4 @@ // src/Consumer.ts

export { Consumer_default };
export {
Consumer_default
};

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

export { EnhancedEventEmitter } from '../chunk-BW2DGP4D.js';
import '../chunk-JSBRDJBE.js';
import {
EnhancedEventEmitter
} from "../chunk-BW2DGP4D.js";
import "../chunk-JSBRDJBE.js";
export {
EnhancedEventEmitter
};

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

export { EnhancedMap, defaultCompareFn } from '../chunk-MVJZAXK3.js';
import '../chunk-JSBRDJBE.js';
import {
EnhancedMap,
defaultCompareFn
} from "../chunk-MVJZAXK3.js";
import "../chunk-JSBRDJBE.js";
export {
EnhancedMap,
defaultCompareFn
};

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

import '../chunk-JSBRDJBE.js';
import "../chunk-JSBRDJBE.js";

@@ -49,3 +49,5 @@ // src/common-js/EnhancedSet.ts

};
export { EnhancedSet, defaultCompareFn };
export {
EnhancedSet,
defaultCompareFn
};

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

import '../chunk-JSBRDJBE.js';
import "../chunk-JSBRDJBE.js";

@@ -21,3 +21,4 @@ // src/common-js/retryAsyncWithBackoff.ts

};
export { retryAsyncWithBackof };
export {
retryAsyncWithBackof
};

@@ -1,3 +0,8 @@

export { deviceConstraints_default as default } from '../chunk-FIM2WZLS.js';
import '../chunk-Q4PETRM3.js';
import '../chunk-JSBRDJBE.js';
import {
deviceConstraints_default
} from "../chunk-FIM2WZLS.js";
import "../chunk-Q4PETRM3.js";
import "../chunk-JSBRDJBE.js";
export {
deviceConstraints_default as default
};

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

export { PC_PROPRIETARY_CONSTRAINTS, SCREEN_SHARING_SVC_ENCODINGS, VIDEO_CONSTRAINTS, WEBCAM_KSVC_ENCODINGS, WEBCAM_SIMULCAST_ENCODINGS, codecOptionsViaKind, encodingViaMediaType } from '../chunk-Q4PETRM3.js';
import '../chunk-JSBRDJBE.js';
import {
PC_PROPRIETARY_CONSTRAINTS,
SCREEN_SHARING_SVC_ENCODINGS,
VIDEO_CONSTRAINTS,
WEBCAM_KSVC_ENCODINGS,
WEBCAM_SIMULCAST_ENCODINGS,
codecOptionsViaKind,
encodingViaMediaType
} from "../chunk-Q4PETRM3.js";
import "../chunk-JSBRDJBE.js";
export {
PC_PROPRIETARY_CONSTRAINTS,
SCREEN_SHARING_SVC_ENCODINGS,
VIDEO_CONSTRAINTS,
WEBCAM_KSVC_ENCODINGS,
WEBCAM_SIMULCAST_ENCODINGS,
codecOptionsViaKind,
encodingViaMediaType
};

@@ -1,4 +0,9 @@

export { Consumer_default as default } from './chunk-YROZGIK5.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
Consumer_default
} from "./chunk-YROZGIK5.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
Consumer_default as default
};

@@ -1,7 +0,12 @@

export { DeviceHandler_default as default } from './chunk-HDCV2PNW.js';
import './chunk-FIM2WZLS.js';
import './chunk-Q4PETRM3.js';
import './chunk-WA3QABYS.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
DeviceHandler_default
} from "./chunk-HDCV2PNW.js";
import "./chunk-FIM2WZLS.js";
import "./chunk-Q4PETRM3.js";
import "./chunk-WA3QABYS.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
DeviceHandler_default as default
};

@@ -1,3 +0,10 @@

export { RetryAbortError, apiCallWithRetry } from '../chunk-UNAM3CMB.js';
import '../chunk-TOCFOGTC.js';
import '../chunk-JSBRDJBE.js';
import {
RetryAbortError,
apiCallWithRetry
} from "../chunk-UNAM3CMB.js";
import "../chunk-TOCFOGTC.js";
import "../chunk-JSBRDJBE.js";
export {
RetryAbortError,
apiCallWithRetry
};

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

export { estimateSize, getMediaDeviceKind, getMediaStreamKind, getMediaTrack, isBrowser, isNode, isReactNative } from '../chunk-WA3QABYS.js';
import '../chunk-JSBRDJBE.js';
import {
estimateSize,
getMediaDeviceKind,
getMediaStreamKind,
getMediaTrack,
isBrowser,
isNode,
isReactNative
} from "../chunk-WA3QABYS.js";
import "../chunk-JSBRDJBE.js";
export {
estimateSize,
getMediaDeviceKind,
getMediaStreamKind,
getMediaTrack,
isBrowser,
isNode,
isReactNative
};

@@ -1,3 +0,12 @@

export { parseRouterRtpCapabilities, parseRtpParameters, parseToProtoRtpParameters } from '../chunk-2OLUNNR5.js';
import '../chunk-DFNYORIF.js';
import '../chunk-JSBRDJBE.js';
import {
parseRouterRtpCapabilities,
parseRtpParameters,
parseToProtoRtpParameters
} from "../chunk-2OLUNNR5.js";
import "../chunk-DFNYORIF.js";
import "../chunk-JSBRDJBE.js";
export {
parseRouterRtpCapabilities,
parseRtpParameters,
parseToProtoRtpParameters
};
import LocalPeer from './LocalPeer.js';
import Socket from './Socket.js';
import { R as Room } from './common.types.d-DZb_hSOV.js';
import { R as Room } from './common.types.d-BpzurmS5.js';
import { HandlerFactory } from 'mediasoup-client/lib/types';

@@ -13,5 +13,2 @@ import 'mediasoup-client';

import './common-js/EnhancedMap.js';
import './Bot.js';
import 'mediasoup-client/lib/DataConsumer';
import 'mediasoup-client/lib/DataProducer';
import 'types/dist/clientToSushiEvents';

@@ -24,2 +21,4 @@ import 'types/dist/sushiToClientEvents';

import './ActiveSpeakers.js';
import './Bot.js';
import 'mediasoup-client/lib/DataConsumer';

@@ -70,3 +69,2 @@ declare class HuddleClient {

};
volatileMessaging?: boolean;
wsPolyfill?: typeof WebSocket;

@@ -73,0 +71,0 @@ handlerFactory?: HandlerFactory;

@@ -1,23 +0,28 @@

export { HuddleClient_default as default } from './chunk-UHQJLRUH.js';
import './chunk-Y76V3A7U.js';
import './chunk-36XSK5BH.js';
import './chunk-2OLUNNR5.js';
import './chunk-MVJZAXK3.js';
import './chunk-7ONXVTRI.js';
import './chunk-GMM2GTBP.js';
import './chunk-U3ZBI3M2.js';
import './chunk-P6ECWQ7C.js';
import './chunk-NTD5WULD.js';
import './chunk-UNAM3CMB.js';
import './chunk-SJ5FMYZU.js';
import './chunk-DFNYORIF.js';
import './chunk-6MHHX2FW.js';
import './chunk-YROZGIK5.js';
import './chunk-HDCV2PNW.js';
import './chunk-FIM2WZLS.js';
import './chunk-Q4PETRM3.js';
import './chunk-WA3QABYS.js';
import './chunk-E2DU7IIE.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
HuddleClient_default
} from "./chunk-B7N6C53T.js";
import "./chunk-3UYAD4DW.js";
import "./chunk-WDRQN5MP.js";
import "./chunk-2OLUNNR5.js";
import "./chunk-MVJZAXK3.js";
import "./chunk-UDDDPKLE.js";
import "./chunk-5N67J65H.js";
import "./chunk-QOGOTFS5.js";
import "./chunk-P6ECWQ7C.js";
import "./chunk-NTD5WULD.js";
import "./chunk-UNAM3CMB.js";
import "./chunk-SJ5FMYZU.js";
import "./chunk-DFNYORIF.js";
import "./chunk-AQQIKM2E.js";
import "./chunk-YROZGIK5.js";
import "./chunk-HDCV2PNW.js";
import "./chunk-FIM2WZLS.js";
import "./chunk-Q4PETRM3.js";
import "./chunk-WA3QABYS.js";
import "./chunk-E2DU7IIE.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
HuddleClient_default as default
};
export { default as HuddleClient } from './HuddleClient.js';
export { R as Room } from './common.types.d-DZb_hSOV.js';
export { R as Room } from './common.types.d-BpzurmS5.js';
export { default as RemotePeer } from './RemotePeer.js';

@@ -13,7 +13,6 @@ export { default as LocalPeer } from './LocalPeer.js';

import './types/common.types.js';
import 'zod';
import './ActiveSpeakers.js';
import './Bot.js';
import 'mediasoup-client/lib/DataConsumer';
import 'mediasoup-client/lib/DataProducer';
import 'zod';
import './ActiveSpeakers.js';
import 'types/dist/common.types';

@@ -20,0 +19,0 @@ import 'mediasoup-client';

@@ -1,23 +0,51 @@

export { HuddleClient_default as HuddleClient } from './chunk-UHQJLRUH.js';
export { LocalPeer_default as LocalPeer, RemotePeer_default as RemotePeer } from './chunk-Y76V3A7U.js';
export { Transport_default as Transport } from './chunk-36XSK5BH.js';
import './chunk-2OLUNNR5.js';
import './chunk-MVJZAXK3.js';
import './chunk-7ONXVTRI.js';
export { Room_default as Room } from './chunk-GMM2GTBP.js';
export { Socket_default as Socket } from './chunk-U3ZBI3M2.js';
import './chunk-P6ECWQ7C.js';
import './chunk-NTD5WULD.js';
import './chunk-UNAM3CMB.js';
import './chunk-SJ5FMYZU.js';
import './chunk-DFNYORIF.js';
import './chunk-6MHHX2FW.js';
export { Consumer_default as Consumer } from './chunk-YROZGIK5.js';
export { DeviceHandler_default as DeviceHandler } from './chunk-HDCV2PNW.js';
import './chunk-FIM2WZLS.js';
import './chunk-Q4PETRM3.js';
import './chunk-WA3QABYS.js';
export { Permissions_default as Permissions } from './chunk-E2DU7IIE.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
HuddleClient_default
} from "./chunk-B7N6C53T.js";
import {
LocalPeer_default,
RemotePeer_default
} from "./chunk-3UYAD4DW.js";
import {
Transport_default
} from "./chunk-WDRQN5MP.js";
import "./chunk-2OLUNNR5.js";
import "./chunk-MVJZAXK3.js";
import "./chunk-UDDDPKLE.js";
import {
Room_default
} from "./chunk-5N67J65H.js";
import {
Socket_default
} from "./chunk-QOGOTFS5.js";
import "./chunk-P6ECWQ7C.js";
import "./chunk-NTD5WULD.js";
import "./chunk-UNAM3CMB.js";
import "./chunk-SJ5FMYZU.js";
import "./chunk-DFNYORIF.js";
import "./chunk-AQQIKM2E.js";
import {
Consumer_default
} from "./chunk-YROZGIK5.js";
import {
DeviceHandler_default
} from "./chunk-HDCV2PNW.js";
import "./chunk-FIM2WZLS.js";
import "./chunk-Q4PETRM3.js";
import "./chunk-WA3QABYS.js";
import {
Permissions_default
} from "./chunk-E2DU7IIE.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
Consumer_default as Consumer,
DeviceHandler_default as DeviceHandler,
HuddleClient_default as HuddleClient,
LocalPeer_default as LocalPeer,
Permissions_default as Permissions,
RemotePeer_default as RemotePeer,
Room_default as Room,
Socket_default as Socket,
Transport_default as Transport
};

@@ -9,3 +9,2 @@ import { Producer, HandlerFactory, AppData } from 'mediasoup-client/lib/types';

import { EnhancedEventEmitter } from './common-js/EnhancedEventEmitter.js';
import { VolatileDataMessage } from './Bot.js';
import './common-js/EnhancedMap.js';

@@ -18,4 +17,2 @@ import 'mediasoup-client/lib/RtpParameters';

import './RemotePeer.js';
import 'mediasoup-client/lib/DataConsumer';
import 'mediasoup-client/lib/DataProducer';

@@ -186,9 +183,2 @@ type RoomStats = {

/**
* Variable to know if Volatile Messaging is enabled for the LocalPeer,
* when using Volatile Messaging, the messages are sent over UDP using WebRTC
* which makes the messages faster but not reliable and have much higher rate limit
* and lower Latency.
*/
private __volatileMessaging;
/**
* Return the labels of the Media Stream that the Local Peer is producing to the room

@@ -271,6 +261,3 @@ */

transportExists: (transportType: TTransportType) => Transport | null;
static create(options: {
handlerFactory?: HandlerFactory;
volatileMessages?: boolean;
}): LocalPeer;
static create(handlerFactory?: HandlerFactory): LocalPeer;
static getInstance(): LocalPeer;

@@ -285,2 +272,5 @@ private constructor();

/**
* LocalPeer Handler Functions Begins Here 👇
*/
/**
* Produce a stream with a given label and appData to all the Remote Peers

@@ -476,11 +466,10 @@ *

/**
* Activate Sending and Receving Volatile Messages, which uses WebRTC DataChannels over UDP
* to send messages to the RemotePeers in the Room, this is faster than sending messages over WebSockets and has much lower Rate Limiting
* Prefer using this for sending burst messages to the RemotePeers in the Room
* @returns { ok: boolean, error?: Error } - error will be present if failed to activate volatile messaging
* Activate Getting Active Speaker of the Remote Peers in the Room in decreasing order.
* i.e. Speaker who are speaking the most in the room.
*
* if autoConsume is false, you have to manually consume speaker to get there notification
*/
private __activateVolatileMessaging;
activateActiveSpeakersNotification: (size?: number) => Promise<void>;
/**
* Send Data Gives the functionality to send data to other remote peers or the whole room,
* NOTE: This will be sent over WebSockets which are over TCP which will be slower and can be rate limited.
* Send Data Gives the functionality to send data to other remote peers or the whole room
* @returns { success: boolean, error?: string } - error will be present if failed to send data

@@ -496,9 +485,4 @@ */

}>;
produceData: () => void;
/**
* Send Volatile Data Gives the functionality to send data to other remote peers or the whole room,
* NOTE: This will be sent over WebRTC DataChannels which are over UDP which will be faster and can be rate limited.
* @returns { ok: boolean } - if the volatile data was sent, cannot guarantee if the data was received as its over UDP
*/
sendVolatileData: (data: Omit<VolatileDataMessage, "to" | "from">) => Promise<void>;
/**
* Send Message to update the metadata of the Local Peer

@@ -526,6 +510,2 @@ *

/**
* @description Registers the important internal listeners for the client, events such as reconnected, room-joined etc.
*/
private __registerInternalListeners;
/**
* @description Creates a Producer, if send transport is not initialized, it creates one and then creates a producer

@@ -536,14 +516,2 @@ * @param data - Data to create a producer { label, stream, stopTrackOnClose, appData }

private __createProducer;
/**
* @description Create a DataProducer on the server, Data Producer is used to send data other than Media stream to the server
* @throws Error if DataProducer cannot be created
* @param data
*/
private __createDataProducer;
/**
* Create WebRTC Transport (Send/Recv) on Server
* @throws Error if Transport cannot be created
* @param data - Transport Data { transportType }
* @returns - Transport ( WebRTC Transport )
*/
private __createTransportOnServer;

@@ -572,9 +540,3 @@ /**

private __handleWaitingToProduce;
/**
* Invoke the waiting to consume tasks and clear the waiting to consume array
*/
private __handleWaitingToConsume;
/**
* SyncMeetingState - Sync the Meeting State with the server, information such as new remote peer, change in producers etc.
*/
private __syncMeetingState;

@@ -581,0 +543,0 @@ }

@@ -1,22 +0,27 @@

export { LocalPeer_default as default } from './chunk-Y76V3A7U.js';
import './chunk-36XSK5BH.js';
import './chunk-2OLUNNR5.js';
import './chunk-MVJZAXK3.js';
import './chunk-7ONXVTRI.js';
import './chunk-GMM2GTBP.js';
import './chunk-U3ZBI3M2.js';
import './chunk-P6ECWQ7C.js';
import './chunk-NTD5WULD.js';
import './chunk-UNAM3CMB.js';
import './chunk-SJ5FMYZU.js';
import './chunk-DFNYORIF.js';
import './chunk-6MHHX2FW.js';
import './chunk-YROZGIK5.js';
import './chunk-HDCV2PNW.js';
import './chunk-FIM2WZLS.js';
import './chunk-Q4PETRM3.js';
import './chunk-WA3QABYS.js';
import './chunk-E2DU7IIE.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
LocalPeer_default
} from "./chunk-3UYAD4DW.js";
import "./chunk-WDRQN5MP.js";
import "./chunk-2OLUNNR5.js";
import "./chunk-MVJZAXK3.js";
import "./chunk-UDDDPKLE.js";
import "./chunk-5N67J65H.js";
import "./chunk-QOGOTFS5.js";
import "./chunk-P6ECWQ7C.js";
import "./chunk-NTD5WULD.js";
import "./chunk-UNAM3CMB.js";
import "./chunk-SJ5FMYZU.js";
import "./chunk-DFNYORIF.js";
import "./chunk-AQQIKM2E.js";
import "./chunk-YROZGIK5.js";
import "./chunk-HDCV2PNW.js";
import "./chunk-FIM2WZLS.js";
import "./chunk-Q4PETRM3.js";
import "./chunk-WA3QABYS.js";
import "./chunk-E2DU7IIE.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
LocalPeer_default as default
};

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

export { createLogger, mainLogger, setLogLevel, setLoggerFactory } from './chunk-TOCFOGTC.js';
import './chunk-JSBRDJBE.js';
import {
createLogger,
mainLogger,
setLogLevel,
setLoggerFactory
} from "./chunk-TOCFOGTC.js";
import "./chunk-JSBRDJBE.js";
export {
createLogger,
mainLogger,
setLogLevel,
setLoggerFactory
};

@@ -1,4 +0,13 @@

export { checkPermissions, checkProducePermissions, Permissions_default as default } from './chunk-E2DU7IIE.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
Permissions_default,
checkPermissions,
checkProducePermissions
} from "./chunk-E2DU7IIE.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
checkPermissions,
checkProducePermissions,
Permissions_default as default
};

@@ -1,22 +0,27 @@

export { RemotePeer_default as default } from './chunk-Y76V3A7U.js';
import './chunk-36XSK5BH.js';
import './chunk-2OLUNNR5.js';
import './chunk-MVJZAXK3.js';
import './chunk-7ONXVTRI.js';
import './chunk-GMM2GTBP.js';
import './chunk-U3ZBI3M2.js';
import './chunk-P6ECWQ7C.js';
import './chunk-NTD5WULD.js';
import './chunk-UNAM3CMB.js';
import './chunk-SJ5FMYZU.js';
import './chunk-DFNYORIF.js';
import './chunk-6MHHX2FW.js';
import './chunk-YROZGIK5.js';
import './chunk-HDCV2PNW.js';
import './chunk-FIM2WZLS.js';
import './chunk-Q4PETRM3.js';
import './chunk-WA3QABYS.js';
import './chunk-E2DU7IIE.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
RemotePeer_default
} from "./chunk-3UYAD4DW.js";
import "./chunk-WDRQN5MP.js";
import "./chunk-2OLUNNR5.js";
import "./chunk-MVJZAXK3.js";
import "./chunk-UDDDPKLE.js";
import "./chunk-5N67J65H.js";
import "./chunk-QOGOTFS5.js";
import "./chunk-P6ECWQ7C.js";
import "./chunk-NTD5WULD.js";
import "./chunk-UNAM3CMB.js";
import "./chunk-SJ5FMYZU.js";
import "./chunk-DFNYORIF.js";
import "./chunk-AQQIKM2E.js";
import "./chunk-YROZGIK5.js";
import "./chunk-HDCV2PNW.js";
import "./chunk-FIM2WZLS.js";
import "./chunk-Q4PETRM3.js";
import "./chunk-WA3QABYS.js";
import "./chunk-E2DU7IIE.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
RemotePeer_default as default
};

@@ -1,3 +0,8 @@

export { ProtoRequestEvent } from './chunk-SJ5FMYZU.js';
import './chunk-DFNYORIF.js';
import './chunk-JSBRDJBE.js';
import {
ProtoRequestEvent
} from "./chunk-SJ5FMYZU.js";
import "./chunk-DFNYORIF.js";
import "./chunk-JSBRDJBE.js";
export {
ProtoRequestEvent
};
import './common-js/EnhancedEventEmitter.js';
import './RemotePeer.js';
import './types/common.types.js';
import './Bot.js';
export { a as RoomEvents, b as RoomStates, e as RoomStats, R as default } from './common.types.d-DZb_hSOV.js';
export { a as RoomEvents, b as RoomStates, e as RoomStats, R as default } from './common.types.d-BpzurmS5.js';
import './ActiveSpeakers.js';

@@ -11,4 +10,4 @@ import './Consumer.js';

import 'types/dist/common.types';
import 'zod';
import './Bot.js';
import 'mediasoup-client/lib/DataConsumer';
import 'mediasoup-client/lib/DataProducer';
import 'zod';

@@ -1,12 +0,17 @@

export { Room_default as default } from './chunk-GMM2GTBP.js';
import './chunk-U3ZBI3M2.js';
import './chunk-P6ECWQ7C.js';
import './chunk-NTD5WULD.js';
import './chunk-UNAM3CMB.js';
import './chunk-SJ5FMYZU.js';
import './chunk-DFNYORIF.js';
import './chunk-WA3QABYS.js';
import './chunk-E2DU7IIE.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
Room_default
} from "./chunk-5N67J65H.js";
import "./chunk-QOGOTFS5.js";
import "./chunk-P6ECWQ7C.js";
import "./chunk-NTD5WULD.js";
import "./chunk-UNAM3CMB.js";
import "./chunk-SJ5FMYZU.js";
import "./chunk-DFNYORIF.js";
import "./chunk-WA3QABYS.js";
import "./chunk-E2DU7IIE.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
Room_default as default
};

@@ -1,10 +0,15 @@

export { Socket_default as default } from './chunk-U3ZBI3M2.js';
import './chunk-P6ECWQ7C.js';
import './chunk-NTD5WULD.js';
import './chunk-UNAM3CMB.js';
import './chunk-SJ5FMYZU.js';
import './chunk-DFNYORIF.js';
import './chunk-WA3QABYS.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
Socket_default
} from "./chunk-QOGOTFS5.js";
import "./chunk-P6ECWQ7C.js";
import "./chunk-NTD5WULD.js";
import "./chunk-UNAM3CMB.js";
import "./chunk-SJ5FMYZU.js";
import "./chunk-DFNYORIF.js";
import "./chunk-WA3QABYS.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
Socket_default as default
};

@@ -18,8 +18,2 @@ import * as mediasoup from 'mediasoup-client';

};
type CreateDataProducerType = {
label: string;
ordered?: boolean;
maxRetransmits?: number;
maxPacketLifeTime?: number;
};
declare class Transport extends EnhancedEventEmitter<TransportEvents> {

@@ -127,2 +121,9 @@ /**

/**
* Remove the producer by its id, Producer is only removed from the local State.
* To close the producer call `localPeer.stopProducing()`
* @param producerId - Producer Id of the producer to be removed.
* @returns - Producer | undefined; Returns undefined if producer is not found
*/
removeProducerById(producerId: string): boolean;
/**
* Get the consumer by label and peerId

@@ -208,16 +209,14 @@ * @param data

* Function to handle the producing of a data stream to the room.
* @param data - { label: string, ordered?: boolean, maxRetransmits?: number, maxPacketLifeTime?: number }
* - `label` is the unique identifier for the data stream, Cannot use `bot` which is reserved.
* - `ordered` is the boolean value to determine if the data should be ordered or not, or reliably.
* - `maxRetransmits` When ordered is false indicates the maximum number of times a packet will be retransmitted.
* - `maxPacketLifeTime` When ordered is false indicates the time (in milliseconds) after which a SCTP packet will stop being retransmitted.
* @param data - { label: string, appData?: AppData }
* @returns - DataProducer
*/
produceData: (options: CreateDataProducerType) => Promise<mediasoup.types.DataProducer<mediasoup.types.AppData>>;
produceData: (data: {
label: string;
appData?: AppData;
}) => Promise<mediasoup.types.DataProducer<{
producerPeerId: string;
label: string;
ordered: boolean;
}>>;
/**
* @description - Close the data producer by label
* @param label - Label of the data producer to be closed
*/
closeDataProducer: (label: string) => void;
/**
* Consume means to receive the media stream from the room. ( MediaStreamTrack )

@@ -265,2 +264,2 @@ * Using WebRTC Connection to receive the media stream.

export { type CreateDataProducerType, type TransportEvents, Transport as default };
export { type TransportEvents, Transport as default };

@@ -1,15 +0,20 @@

export { Transport_default as default } from './chunk-36XSK5BH.js';
import './chunk-2OLUNNR5.js';
import './chunk-MVJZAXK3.js';
import './chunk-U3ZBI3M2.js';
import './chunk-P6ECWQ7C.js';
import './chunk-NTD5WULD.js';
import './chunk-UNAM3CMB.js';
import './chunk-SJ5FMYZU.js';
import './chunk-DFNYORIF.js';
import './chunk-YROZGIK5.js';
import './chunk-Q4PETRM3.js';
import './chunk-WA3QABYS.js';
import './chunk-TOCFOGTC.js';
import './chunk-BW2DGP4D.js';
import './chunk-JSBRDJBE.js';
import {
Transport_default
} from "./chunk-WDRQN5MP.js";
import "./chunk-2OLUNNR5.js";
import "./chunk-MVJZAXK3.js";
import "./chunk-QOGOTFS5.js";
import "./chunk-P6ECWQ7C.js";
import "./chunk-NTD5WULD.js";
import "./chunk-UNAM3CMB.js";
import "./chunk-SJ5FMYZU.js";
import "./chunk-DFNYORIF.js";
import "./chunk-YROZGIK5.js";
import "./chunk-Q4PETRM3.js";
import "./chunk-WA3QABYS.js";
import "./chunk-TOCFOGTC.js";
import "./chunk-BW2DGP4D.js";
import "./chunk-JSBRDJBE.js";
export {
Transport_default as default
};

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

import '../chunk-JSBRDJBE.js';
import "../chunk-JSBRDJBE.js";

@@ -12,3 +12,4 @@ // src/types/common.types.ts

})(Role || {});
export { Role };
export {
Role
};

@@ -9,6 +9,5 @@ export { Producer } from 'mediasoup-client/lib/types';

export { RemotePeerEvents } from '../RemotePeer.js';
export { N as NewRoomControls, P as ProduceSources, d as RoomControls, a as RoomEvents, c as RoomInfo, b as RoomStates, T as TPermissions } from '../common.types.d-DZb_hSOV.js';
export { N as NewRoomControls, P as ProduceSources, d as RoomControls, a as RoomEvents, c as RoomInfo, b as RoomStates, T as TPermissions } from '../common.types.d-BpzurmS5.js';
export { MessagePayload, SocketEvents } from '../Socket.js';
export { TransportEvents } from '../Transport.js';
export { VolatileDataMessage } from '../Bot.js';
import 'zod';

@@ -20,2 +19,4 @@ import 'mediasoup-client/lib/RtpParameters';

import '../ActiveSpeakers.js';
import '../Bot.js';
import 'mediasoup-client/lib/DataConsumer';
import 'types/dist/clientToSushiEvents';

@@ -25,3 +26,1 @@ import 'types/dist/sushiToClientEvents';

import '../common-js/EnhancedMap.js';
import 'mediasoup-client/lib/DataConsumer';
import 'mediasoup-client/lib/DataProducer';

@@ -1,8 +0,12 @@

import '../chunk-P6ECWQ7C.js';
import { ConnectionParameterSchema } from '../chunk-NTD5WULD.js';
import '../chunk-JSBRDJBE.js';
import { z } from 'zod';
import "../chunk-P6ECWQ7C.js";
import {
ConnectionParameterSchema
} from "../chunk-NTD5WULD.js";
import "../chunk-JSBRDJBE.js";
// src/types/socket.types.ts
import { z } from "zod";
var SocketConnectionParameterSchema = z.object({}).merge(ConnectionParameterSchema);
export { SocketConnectionParameterSchema };
export {
SocketConnectionParameterSchema
};

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

export { ConnectionParameterSchema, DataMessageSchema, GeolocationSchema, VolatileDataMessageSchema } from '../chunk-NTD5WULD.js';
import '../chunk-JSBRDJBE.js';
import {
ConnectionParameterSchema,
DataMessageSchema,
GeolocationSchema,
VolatileDataMessageSchema
} from "../chunk-NTD5WULD.js";
import "../chunk-JSBRDJBE.js";
export {
ConnectionParameterSchema,
DataMessageSchema,
GeolocationSchema,
VolatileDataMessageSchema
};

@@ -1,3 +0,14 @@

import '../chunk-P6ECWQ7C.js';
export { ConnectionParameterSchema, DataMessageSchema, GeolocationSchema, VolatileDataMessageSchema } from '../chunk-NTD5WULD.js';
import '../chunk-JSBRDJBE.js';
import "../chunk-P6ECWQ7C.js";
import {
ConnectionParameterSchema,
DataMessageSchema,
GeolocationSchema,
VolatileDataMessageSchema
} from "../chunk-NTD5WULD.js";
import "../chunk-JSBRDJBE.js";
export {
ConnectionParameterSchema,
DataMessageSchema,
GeolocationSchema,
VolatileDataMessageSchema
};
{
"name": "@huddle01/web-core",
"version": "2.1.9-dev.5",
"version": "2.1.9",
"description": "The Huddle01 Javascript SDK offers a comprehensive suite of methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.",

@@ -5,0 +5,0 @@ "type": "module",

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

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

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