UNPKG

@skyway-sdk/core

Version:

The official Next Generation JavaScript SDK for SkyWay

31 lines 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnknownMemberImpl = void 0; const member_1 = require("../../../member"); const connection_1 = require("./connection"); class UnknownMemberImpl extends member_1.MemberImpl { constructor(args) { super(args); this.type = 'bot'; this.side = 'remote'; this._connections = {}; this.plugin = args.plugin; this.subtype = args.subtype; } /**@private */ _getConnection(localPersonId) { return this._connections[localPersonId]; } /**@private */ _getOrCreateConnection(localPerson) { var _a; const connection = (_a = this._getConnection(localPerson.id)) !== null && _a !== void 0 ? _a : this._createConnection(localPerson, this); return connection; } _createConnection(localPerson, endpointMember) { return new connection_1.UnknownConnection(localPerson, endpointMember); } _dispose() { } } exports.UnknownMemberImpl = UnknownMemberImpl; //# sourceMappingURL=member.js.map