UNPKG

@signalapp/mock-server

Version:
50 lines (49 loc) 1.47 kB
"use strict"; // Copyright 2026 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only Object.defineProperty(exports, "__esModule", { value: true }); exports.SfuConnection = void 0; exports.getSfuConnectionId = getSfuConnectionId; function getSfuConnectionId(params) { return `${params.eraId}:${params.demuxId}`; } class SfuConnection { #connectionId; #demuxId; #serverIceUsername; #clientIceUsername; #serverIcePassword; #clientIcePassword; #strpKeyMaterial; constructor(options) { this.#connectionId = options.connectionId; this.#demuxId = options.demuxId; this.#serverIceUsername = options.serverIceUsername; this.#clientIceUsername = options.clientIceUsername; this.#serverIcePassword = options.serverIcePassword; this.#clientIcePassword = options.clientIcePassword; this.#strpKeyMaterial = options.strpKeyMaterial; } get connectionId() { return this.#connectionId; } get demuxId() { return this.#demuxId; } get serverIceUsername() { return this.#serverIceUsername; } get clientIceUsername() { return this.#clientIceUsername; } get serverIcePassword() { return this.#serverIcePassword; } get clientIcePassword() { return this.#clientIcePassword; } get strpKeyMaterial() { return this.#strpKeyMaterial; } } exports.SfuConnection = SfuConnection;