Skip to content
On this page

Class: Peer

WebSGNetworking.Peer

Table of contents

Constructors

Accessors

Methods

Constructors

constructor

new Peer()

Accessors

id

get id(): string

Returns

string

Defined in

websg.d.ts:2494


isHost

get isHost(): boolean

Returns

boolean

Defined in

websg.d.ts:2495


isLocal

get isLocal(): boolean

Returns

boolean

Defined in

websg.d.ts:2496


rotation

get rotation(): Quaternion

Returns

Quaternion

Defined in

websg.d.ts:2498


translation

get translation(): Vector3

Returns

Vector3

Defined in

websg.d.ts:2497

Methods

send

send(message, reliable): undefined

Parameters

NameType
messagestring | ArrayBuffer
reliableboolean

Returns

undefined

Defined in

websg.d.ts:2499