Chat with mercure


I’m trying to use what module in live mode with mercure (

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, []);
							case "event":, n.body.value);
							case "start":
								t._mode = 3, t._send(), t._resubscribe();

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