V
V
Vitaly Stolyarov2017-08-17 09:33:38
Data synchronization
Vitaly Stolyarov, 2017-08-17 09:33:38

Sync data between browser and third party process?

It is necessary to transfer data to the browser from another process on the device (so far only Desktop OSes are considered).
Example:
a window with a preview of a 3D model is displayed in the browser. The model itself is edited in some editor, such as Blender, and when it changes, you need to update the same model in the browser.
It is known that this can be implemented using Websockets. By running the localhost server via an addon (in Python) in Blender and connecting from a browser.
But are there other options, or is this one the most convenient and reliable?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
victorinamina, 2017-08-17
@victorinamina

The most natural and convenient is to create a fake web server, the only task of which will be to exchange data on behalf of this other process with the browser (the process itself can be represented as a web server, a separate web server is not needed here). If it's local, then even web sockets are not needed, regular AJAX over HTTP with a callback will be fast.
Any plug-ins for these purposes are a path of pain.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question