I am aware of https://github.com/DenisKolodin/yew/tree/master/examples
Is there a simple Yew + Websocket + Echo example somewhere? I am looking for something where client (browser) has a text area, types a message, sends it to server (via websocket), gets msgs back, and displays message.
This seems like a "minimal example" for yew + websocket, but I can't seem to find it on either google or github.
2 Likes
I was just asking myself the same question.
The example "dashboard" uses websockets, and using that I could put an echo client together using Yew. I put my code to https://gist.github.com/anttisalonen/cb3cd19623ebad923740b90ea6ddf208. It's not pretty but it works. Hope that helps.
1 Like
@anttisalonen This sample code looks great. Thanks!
@anon80458984 @anttisalonen Could you update to yew 0.19?
2 Likes