You can create Chat as a Webix view or as a standalone Jet app. Both ways will lead to the same result.
webix.ready(function() {
// use custom scrolls, optional
if (webix.env.mobile) webix.ui.fullScreen();
webix.CustomScroll.init();
webix.ui({
view: "chat",
token,
url: "https://docs.webix.com/chat-backend/",
});
});
Related sample: Chat: Webix View Initialization
webix.ready(function() {
// use custom scrolls, optional
if (webix.env.mobile) webix.ui.fullScreen();
webix.CustomScroll.init();
var app = new chat.App({
token,
url: "https://docs.webix.com/chat-backend/",
});
app.render(document.body);
});
Related sample: Chat: JetApp Initialization
Back to top