Get a connector
Request a core connector from weei.sdk.connectors inside mount() or configureBackground(). You get the same instance Weei itself uses; it is never created twice.
const { rxjs, connectors } = weei.sdk;
app.rtcService.getOrCreateConnector(connectors.RtcTopologyConnector)
.pipe(rxjs.first())
.subscribe(topology => {
// Use the connector here.
});What is documented
| Connector | Status | Use it for |
|---|---|---|
TreeRtcServiceEventsConnector | Documented | Display names and what each participant shares. |
RtcTopologyConnector | Documented | Who is in the room. |
RtcMediaConnector | Documented | Participants' camera and microphone streams. |
RtcDiagnosticsConnector | Internal | Connection diagnostics used by Weei tools. |
RtcSystemLogsConnector | Internal | Weei's diagnostic log. |
AvRelayConnector, ScreenRelayConnector | Internal | Media transport. |
UserEventsConnector | Internal | Shared pointer and keyboard events used by recordings. |
WeeiUiSettingsConnector | Internal | Window geometry shared by Weei's UI. |
Your own connectors
To exchange your widget's own data, write a connector: see the tutorial and the connector contract.