Webix-jet dataTable view and websockets

I tried to implement a dataview in webix-jet with loading data via websocker

The websocket simply returns a set of data to display in the view.
it does not act as Faye data indicating what is added, modified or removed.
every time the server pushes data, the whole thing is sent.

So I tried to make a proxy that opens the socket and updates the collection each time the data arrives.

I'm started with jet-start-master (I did not succeed with typescrypt)
in the DataView class (data.js) I changed the definition of the columns and put the url with the prefix ws
I added the proxy.js file, that I imported into app.js

It's artisanal. probably unorthodox But it works.



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!