Interface: P2PChannel

olympe.net.api. P2PChannel

A peer to peer channel

Extends

  • olympe.host.api.NativeElement

Methods


close()

Close the channel


open(initiator [, operation])

Open the channel when it is instantiated

Parameters:
Name Type Argument Description
initiator boolean
operation olympe.net.SignalingOperation <optional>

when the client is not the initiator, this should contain the signaling offer


setCloseHandler(callback)

Sets the close event handler

Parameters:
Name Type Description
callback olympe.net.P2PChannel.CloseHandler

setOpenHandler(callback)

Sets the open event handler

Parameters:
Name Type Description
callback olympe.net.P2PChannel.OpenHandler

setSignalingCallbackHandler(callback)

Set the callback for signaling callback event

Parameters:
Name Type Description
callback olympe.net.P2PChannel.SignalingCallbackHandler

setup(operation)

Handle the signaling negotiation phases of the data channel.

Parameters:
Name Type Description
operation olympe.net.SignalingOperation