JME - Application Documentation
Preparing search index...
includes/types/peer
PeerContextType
Type Alias PeerContextType
Shape of the peer networking context provided to React components
type
PeerContextType
=
{
connectedPeerIds
:
string
[]
;
connectionError
:
string
|
null
;
connections
:
DataConnection
[]
;
createHost
:
()
=>
void
;
disconnect
:
()
=>
void
;
hostId
?:
string
;
isConnecting
:
boolean
;
isHost
:
boolean
;
joinHost
:
(
id
:
string
)
=>
void
;
send
:
(
msg
:
NetMessage
)
=>
void
;
}
Index
Properties
connected
Peer
Ids
connection
Error
connections
create
Host
disconnect
host
Id?
is
Connecting
is
Host
join
Host
send
Properties
connected
Peer
Ids
connectedPeerIds
:
string
[]
connection
Error
connectionError
:
string
|
null
connections
connections
:
DataConnection
[]
create
Host
createHost
:
()
=>
void
disconnect
disconnect
:
()
=>
void
Optional
host
Id
hostId
?:
string
is
Connecting
isConnecting
:
boolean
is
Host
isHost
:
boolean
join
Host
joinHost
:
(
id
:
string
)
=>
void
send
send
:
(
msg
:
NetMessage
)
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
connected
Peer
Ids
connection
Error
connections
create
Host
disconnect
host
Id
is
Connecting
is
Host
join
Host
send
JME - Application Documentation
Loading...
Shape of the peer networking context provided to React components