Constructors
constructor
- new Peer(options): Peer
Parameters
- options: {
channel: Channel;
logger: undefined | Logger;
peerId: string;
protomux: Protomux<any>;
}logger: undefined | Logger
peerId: string
Accessors
connected
- get connected(): Promise<any>
Returns Promise<any>
Methods
[kTestOnlySendRawInvite]
- [kTestOnlySendRawInvite](buf): void
Returns void
connect
- connect(): void
Returns void
disconnect
- disconnect(): void
Returns void
receiveDeviceInfo
- receiveDeviceInfo(deviceInfo): void
Returns void
sendDeviceInfo
- sendDeviceInfo(deviceInfo): void
Returns void
sendInvite
- sendInvite(invite): void
Returns void
sendInviteCancel
- sendInviteCancel(inviteCancel): void
Parameters
- inviteCancel: InviteCancel
Returns void
sendInviteResponse
- sendInviteResponse(response): void
Returns void
sendProjectJoinDetails
- sendProjectJoinDetails(details): void
Parameters
- details: ProjectJoinDetails
Returns void
A promise that resolves when the peer connects, or rejects if it fails to connect