Class: P2PChannelRequest

olympe.net. P2PChannelRequest

Peer-to-peer request


new P2PChannelRequest(localId, remoteId)

Parameters:
Name Type Description
localId string
remoteId string

id of the peer client

Methods


getLocalId()

Returns:

the id of this current client

Type
string

getOffer()

Returns:

offer

Type
olympe.net.SignalingOperation

getRemoteId()

Returns:

the id of the remote client peer

Type
string

isInitiator()

Returns:

true if the request comes from the initiator of the connection

Type
boolean

setOffer(offer)

Parameters:
Name Type Description
offer olympe.net.SignalingOperation