KlausSchaefers / quant-ux

Quant-UX - Prototype, Test and Learn
GNU General Public License v3.0
1.91k stars 196 forks source link

Web Services: WebSocket support #206

Open gernotrot opened 1 year ago

gernotrot commented 1 year ago

Is there a way to support Websocket also? Would make Quant UX even better for hifi prototyping!

gernotrot commented 1 year ago

Is there any update if this is possible? And if yes, any timeframe (would really like to use it in a project) :)

KlausSchaefers commented 1 year ago

Hi, I didn't had time to look into this. Just to understand, you are interested in sending data over a web socket, or more in receiving data? Maybe you could describe your use case a little bit more.

gernotrot commented 1 year ago

Both would be great. I my particular use case. I want to wait for a websocket-event to jump to the next page (in my clickdummy) instead of clicking on a button to jump.

KlausSchaefers commented 1 year ago

Hi,

would it be possible for you to use the Luisa framework? You can render your quant-ux prototype with it, but include the websocket functionality as code.

https://luisa.cloud/#/help/quant_ux.html

I have created several advanced prototypes like this and was quite happy with the mix of design and code.

Cheers,

Klaus

gernotrot commented 1 year ago

Thanks for the hint, I will check this out!

gernotrot commented 1 year ago

I tried it and it looks interesting! I have a question: How can I show a specific screen by using websocket? (User clicks nothing, but waits for an result)

KlausSchaefers commented 1 year ago

You can set the screen name by using the VUE router

   this.$router.push(url)

The url must be something like '/#/myscreen.html' if you are in history mode