A Complete Janus Admin API client which enables easy access through HTTP, WebSockets, MQTT and RabbitMQ.
The major components include a Transport and JanusAdmin where Transport is implemented by either WebSocketTransport, HTTPTransport or EventClientTransport. EventClientTransport is using IEventClient which is implemented by MQTTEventClient and AMQPEventClient.
The JanusAdmin uses the transport to communicate with the Janus API to provide easy access.
The official documentation can be generated from source.
The following Transports are possible
const transport = new WebSocketTransport("ws://janus-server:7188", "janus-admin-protocol");
await transport.waitForReady();
const admin = new JanusAdmin(transport, "janusoverlord");
await admin...
await transport.dispose();
const transport = new EventClientTransport(new MQTTEventClient("tcp://janus-server:1883", { username: "guest", password: "guest" }), "from-janus-admin/#", "to-janus-admin", true);
await transport.waitForReady()
const admin = new JanusAdmin(transport, "janusoverlord");
await admin...
await transport.dispose();
const transport = new EventClientTransport(new AMQPEventClient({ hostname: "janus-server", username: "guest", password: "guest" }, { noDelay: true }), "from-janus-admin", "to-janus-admin", true);
await transport.waitForReady()
const admin = new JanusAdmin(transport, "janusoverlord");
await admin...
await transport.dispose();
const transport = new HTTPTransport("http://janus-server:7088/admin", "janusoverlord", true);
await transport.waitForReady()
const admin = new JanusAdmin(transport, "janusoverlord");
await admin...
await transport.dispose();
This module is released under AGPL-3.0, if its unsuitable for your needs, you may contact us at https://lilusoft.com
Generated using TypeDoc