Constructors
constructor
- new Peer<T extends PeerData>(
client: Client,
netID: number,
channelID?: number,
): Peer<T> Parameters
- client: Client
- netID: number
- channelID: number = 0
Properties
Accessors
Methods
disconnect
- disconnect(type?: "now" | "later" | "normal"): void
Parameters
- type: "now" | "later" | "normal" = "later"
Returns void
send
- send(...data: Sendable[]): void
Returns void
Static
send
- send(_client: Host, netID: number, channelID: number, ...data: Sendable[]): void
Parameters
- _client: Host
- netID: number
- channelID: number
- ...data: Sendable[]
Returns void
Disconnects the peer.