|
|
|
|
|
by Silhouette
2725 days ago
|
|
Also - using WebSockets for a one-way communication channel is ridiculous. I know it's the cool kid way to do things, but that invariably means it's over hyped and has a more appropriate alternative. In this case, it's EventSource/Server Sent Events. I have some sympathy for your view here, but there are some other practical concerns as well in this case. For example, EventSource/SSE are not natively supported on IE/Edge but WebSockets are, so how well whatever you need to do works with your chosen polyfill is a factor. |
|
Websockets requires explicit support on the backend, in every layer of your http stack that it’ll traverse.
If the goal is to simplify your stack, websockets is not the solution.