alexmojaki / alexmojaki/sync-message
WebSockets
- Lingua principale
- TypeScript
- Stelle
- 15
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Creating this issue to initiate a brainstorm about the benefits and drawbacks of using WebSockets to communicate between the main and worker threads. It sounds like an efficient, direct way to communicate without needing a service worker or any shared memory. The biggest drawback I think is the need for a busy loop to poll the socket while waiting. If it doesn't have an explicit method to poll it, we might get stuck in an infinite loop while checking if our input variable is empty as we cannot use the socket at that point. I'm also not too familiar with WebSockets, so maybe permission errors arise when trying to open a socket on an application-specific URL.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.