new P2PDataChannel(hostManager, request)
Parameters:
Name | Type | Description |
---|---|---|
hostManager |
olympe.host.Manager | |
request |
olympe.net.P2PChannelRequest |
Methods
-
getP2PProxyDataChannel()
-
Returns:
Proxified P2P data channel
-
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)