-
Hello, I'm developing a web application with yew and axum. Until now I have made functions to communicate between server and client, and now all I need is to send message that was received from server to component. So I found that some examples of yew_agent::Worker, applied to my project. but some reasons, it doesn't work and it returns error like this. I have a Login component that I want to receive message from client websocket and I implemeted like this.
The log shows me it always succeed to receive message from server. But I don't know why it doesn't work. Here is my full code repository address https://github.com/hash1018/Sketchdove Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After diving into this thing, I finally solved it and want to share about it. So.. hash1018/Sketchdove@3b1e0f2 this commit solved the problem. |
Beta Was this translation helpful? Give feedback.
After diving into this thing, I finally solved it and want to share about it.
It was because I didn't compile web-worker into wasm.
So.. hash1018/Sketchdove@3b1e0f2 this commit solved the problem.