This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const symbols = { | |
info: ['ℹ', 'i'], | |
success: ['✔', '√'], | |
warning: ['!', '!'], | |
error: ['✖', 'x'], | |
bullet: ['⁎', '*'], | |
build: ['🛠', '* '], | |
in: ['📥', '>> '], | |
out: ['📥', '<< '], | |
redirect: ['↩', '><'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>SSE example</title> | |
</head> | |
<body> | |
<h2>Messages:</h2> | |
<pre id="response"></pre> | |
<input id="message"> <button id="btnSubmit">Broadcast</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parameters | |
const players = [ | |
"Jordi", | |
"Pedro", | |
"Pau", | |
"Sergio", | |
"Andrés", | |
"Antonio", | |
]; | |
const nOfRounds = 5; |