Provide websocket support for camera kit
Having websocket support will open up many cool applications for camera kit for web, so it would be great to have it supported on camera kit!
Thanks for this feedback! This issue is under review! We will let you know about this soon.
-
modelsbymike3d@gmail.com
commented
This is currently possible in a way. I used this guide as a start: https://github.com/GOWAAA/camerakit-web-w-recordfeature/blob/main/src/remoteAPIGuide.md
Based off your username, you might be the same person that posted this in Discord.
But what I did was I setup my server and my page hosting the lens opened a websocket connection. Then inside my lens, I made a remote API request on each update event and the page hosting the lens provided the current state that was being updated via the websocket. I had a debounce set on my page that was sending values to the server, but other than that latency I was getting nearly realtime updates in my lens.