Skip to content
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

Fix WebSocket communication #591

Merged
merged 2 commits into from
Dec 10, 2023
Merged

Fix WebSocket communication #591

merged 2 commits into from
Dec 10, 2023

Conversation

niamu
Copy link
Contributor

@niamu niamu commented Dec 10, 2023

Resolves #590

I still don't fully understand why this was broken, but it seems that the ctrl_event_processor function couldn't match received events from a tokio::sync::mpsc::Receiver and only matched against an tokio::sync::mpsc::UnboundedReceiver.

@vgarleanu
Copy link
Member

Ah, the issue most likely might be that the bounded channel isn't consumed fast enough, so incoming messages get dropped? Very weird honestly.

dim-web/src/routes/websocket.rs Outdated Show resolved Hide resolved
@mental32 mental32 enabled auto-merge (squash) December 10, 2023 19:26
@mental32 mental32 merged commit 3a5f225 into Dusk-Labs:master Dec 10, 2023
1 check passed
@niamu niamu deleted the websocket_fix branch December 10, 2023 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebSocket communication is broken
4 participants