UNPKG

@mothepro/fancy-p2p

Version:

A quick and efficient way to form p2p groups in the browser

27 lines 992 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MockClient = void 0; const fancy_emitter_1 = require("fancy-emitter"); class MockClient { constructor(name) { this.name = name; this.isYou = true; this.proposals = new fancy_emitter_1.Emitter; } } exports.MockClient = MockClient; /** Represents another client in the same lobby and signaling server as we are that can preform SDP exchange. */ class default_1 { constructor(id, name) { this.id = id; this.name = name; this.isYou = false; this.proposals = new fancy_emitter_1.Emitter; /** Activate with the creation of an SDP to send it to the corresponding client. */ this.creator = new fancy_emitter_1.SafeEmitter; /** Activates when an SDP is received for this corresponding client. */ this.acceptor = new fancy_emitter_1.SafeEmitter; } } exports.default = default_1; //# sourceMappingURL=Client.js.map