Function
Static Public Summary | ||
public |
create(options: WebChannelSettings): WebChannel Create |
Static Public
public create(options: WebChannelSettings): WebChannel source
import {create} from 'netflux/src/index.js'
Create WebChannel
.
Params:
Name | Type | Attribute | Description |
options | WebChannelSettings | ||
options.connector | WEB_RTC | WEB_SOCKET |
|
Which connector is preferable during connection establishment |
options.topology | FULLY_CONNECTED |
|
Fully connected topology is the only one available for now |
options.signalingURL | string |
|
Signaling server url |
options.iceServers | RTCIceServer |
|
Set of ice servers for WebRTC |
options.listenOn | string |
|
Server url when the peer is listen on web socket |