@fnlb-project/stanza
Version:
Modern XMPP in the browser, with a JSON API
41 lines (40 loc) • 1.87 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = exports.Platform = exports.SASL = exports.RTT = exports.RSM = exports.Utils = exports.Jingle = exports.Stanzas = exports.Namespaces = exports.JID = exports.JXT = exports.DataForms = exports.Constants = exports.Client = void 0;
exports.createClient = createClient;
const tslib_1 = require("tslib");
const Client_1 = tslib_1.__importDefault(require("./Client"));
exports.Client = Client_1.default;
const Constants = tslib_1.__importStar(require("./Constants"));
exports.Constants = Constants;
const RTT = tslib_1.__importStar(require("./helpers/RTT"));
exports.RTT = RTT;
const JID = tslib_1.__importStar(require("./JID"));
exports.JID = JID;
const Jingle = tslib_1.__importStar(require("./jingle"));
exports.Jingle = Jingle;
const JXT = tslib_1.__importStar(require("./jxt"));
exports.JXT = JXT;
const LibSASL = tslib_1.__importStar(require("./lib/sasl"));
exports.SASL = LibSASL;
const Namespaces = tslib_1.__importStar(require("./Namespaces"));
exports.Namespaces = Namespaces;
const Stanzas = tslib_1.__importStar(require("./protocol"));
exports.Stanzas = Stanzas;
const Utils = tslib_1.__importStar(require("./Utils"));
exports.Utils = Utils;
const Platform = tslib_1.__importStar(require("./platform"));
exports.Platform = Platform;
tslib_1.__exportStar(require("./helpers/StreamManagement"), exports);
const RSM = tslib_1.__importStar(require("./helpers/RSM"));
exports.RSM = RSM;
const DataForms = tslib_1.__importStar(require("./helpers/DataForms"));
exports.DataForms = DataForms;
exports.VERSION = Constants.VERSION;
const plugins_1 = tslib_1.__importDefault(require("./plugins"));
tslib_1.__exportStar(require("./plugins"), exports);
function createClient(opts) {
const client = new Client_1.default(opts);
client.use(plugins_1.default);
return client;
}