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