Server Sent Event (SSE) para hacer tiempo real en javascript
Una de las formas para hacer tiempo real en la web es utilizando la API de SSE(Server Sent Event) que es unidireccional quiere decir que el servidor es el único que notifica, cosa contraria respecto a los web sockets que son bidireccional. Ejemplo. 1. Archivo Html <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <style> html, body { padding: 0px; margin: 0px; font-family: sans-serif; } .titulo { padding: 15px; font-weight: bold; background-color: #073f67; text-align: cente...