dpg.broadcast-webrtc
v0.0.20
Published
Modern Broadcast client service library
Downloads
5
Readme
How using
import connection from "dpg.broadcast-client";
import * as IO from "socket.io-client";
interface SocketConfigType extends Partial<IO.ManagerOptions & IO.SocketOptions> {
cid: string;
}
let RTCConfiguration: RTCConfiguration;
let SocketConfig: SocketConfigType;
let Stream: MediaStream;
const visitor = connection(
RTCConfiguration,
SocketConfig
);
const owner = connection(
RTCConfiguration,
SocketConfig,
true,
Stream
);