Last active
August 11, 2016 04:05
-
-
Save gilbarbara/c95b356dbe0c7b95ed5a491de8093fde to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Socket</title> | |
<script src="https://radiovozes.com:8001/socket.io/socket.io.js"></script> | |
</head> | |
<body> | |
<h2 id="container"></h2> | |
<script> | |
var socket = io('wss://radiovozes.com:8001'); | |
socket.on('metadata', function (data) { | |
document.getElementById('container').innerHTML = data.title; | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment