xviz icon indicating copy to clipboard operation
xviz copied to clipboard

Feed data to a XVIZLiveLoader

Open AdelinaK opened this issue 4 years ago • 4 comments

Hello.

I'm working on a project and I want to send data to a XVIZLiveLoader on a web interface. I don't understand exactly how the XVIZServer or XVIZSession are using websockets. I know how to build the data with the XVIZBuilder but I'm confused how the networking part takes place. I wrote the backend in Python. Are there any examples for my case?

Thank you very much.

AdelinaK avatar Aug 04 '20 06:08 AdelinaK

I am also working on this case, unfortunately, don't know how to do.

suseme avatar Sep 15 '20 02:09 suseme

Hi, did you find any solution? @AdelinaK @suseme

mhakca avatar Dec 04 '20 08:12 mhakca

Hi. This example can be useful https://github.com/uber/xviz/tree/master/python/examples

You need XVIZServer, XVIZBaseSession and Builders. XVIZServer contains the websocket connection and the BaseSession runs in a loop and sends data (it is connected to your data source). The Builder is like in the example.

I hope this helps.

AdelinaK avatar Dec 07 '20 15:12 AdelinaK

Thanks @AdelinaK Did you take data and show it on streetscape side with this method ?

mhakca avatar Dec 18 '20 10:12 mhakca