Hello,
I’m trying to use what module in live mode with mercure (https://mercure.rocks).
I made a custom Backend (Working with Server of UI Complex Widgets, Chat Webix Docs) to send all datas to the server with Ajax . No problem with that.
I connect to my mercure server in the init function with en EventSource. I receive correctly messages from the server but I don’t know how to update the view.
I can see a fire function in the webix chat.js code :
switch (n.action) {
case "result":
e.result(n.body, []);
break;
case "event":
e.fire(n.body.name, n.body.value);
break;
case "start":
t._mode = 3, t._send(), t._resubscribe();
break;
default:
e.onError(n.data)
}
I believe the best way is touse this function but I don’t know how to access this function from the ChatView
Any idea ?
Thanks in advance