New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send the Connected
message when the public worker is loaded
#944
Comments
What exactly needs to be done here? I'd gladly help! |
Thanks for offering! So, whenever someone connects to an agent, Yew should send a I think we can take advantage of the existing msg queue that was setup not too long ago. Yew allows sending messages to a public worker that hasn't loaded yet, as soon as the worker loads, the queue will be emptied message by message: Lines 601 to 620 in c991c7c
I think we could pull out the code here: Lines 714 to 720 in c991c7c
and reuse it for non-input messages (Connected, Disconnected, Destroy) so that |
Connected
message when the WorkerLoaded
message is receivedConnected
message when the public worker is loaded
* Add msg queuing for all messages for public agents Fixes #944 * Send Disconnected and Destroy correctly They now use the `send_message` so that they also get queued in case the worker is not ready yet * Remove todo about connected message
* Add msg queuing for all messages for public agents Fixes yewstack#944 * Send Disconnected and Destroy correctly They now use the `send_message` so that they also get queued in case the worker is not ready yet * Remove todo about connected message
yew/src/agent.rs
Line 540 in 1ede167
The text was updated successfully, but these errors were encountered: