minca
ApiCoreFunctions

Function: remoteTransport()

function remoteTransport(port, iceServers): SignalledTransport;

Defined in: packages/core/src/network/remote-transport.ts:116

The connections a serveTransport keeps on the other side of port, as a transport the mesh can use: createTransport in the node's network config.

send can't report a closed channel at once, as WebRTC's own does; the failure comes back as an error event instead.

Parameters

ParameterType
portMessagePortLike
iceServers() => readonly RTCIceServer[]

Returns

SignalledTransport

On this page