alexmojaki / alexmojaki/sync-message

WebSockets

Ouverte
#1 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
15
Forks
5
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.