Class: P2PDataChannel

olympe.net. P2PDataChannel

Peer to Peer Data Channel.


new P2PDataChannel(hostManager, request)

Parameters:
Name Type Description
hostManager olympe.host.Manager
request olympe.net.P2PChannelRequest

Methods


getP2PProxyDataChannel()

Returns:

Proxified P2P data channel

Type
olympe.net.api.P2PDataChannel

sendData(data)

Sends string data through the data channel

Parameters:
Name Type Description
data string

setDataHandler(callback)

Sets the "data" event handler

Parameters:
Name Type Description
callback olympe.net.P2PDataChannel.DataHandler

Type Definitions


DataHandler()

DataHandler(data)