UNPKG

@mothepro/fancy-p2p

Version:

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

18 lines (17 loc) 616 B
import { LitElement } from 'lit-element'; import { SafeListener } from 'fancy-emitter'; import type { Client } from '../index.js'; export default class extends LitElement { /** Activated when a client joins the lobby */ connection: SafeListener<Client>; /** Others connected to the lobby. */ private clients; /** List of incoming proposals */ private proposals; private readonly log; protected firstUpdated(): Promise<void>; private bindProposals; private bindAck; /** Chilling in the lobby. */ protected readonly render: () => import("lit-element").TemplateResult; }