<html>
<head></head>
<body>
<div id="message"></div>
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io();
socket.on('message', function(msg){
console.log(msg);
document.getElementById("message").innerHTML = msg;
});
</script>
</body>
</html>
Code Example |
---|
Javascript :: |
:: |
:: |
:: |
:: |
:: excluding a attribute from json strigify |
Javascript :: get number of elements in hashmap javascript |
:: server sent events node js + github |
:: |
:: |
:: |
:: const userMessage Reaction = new UserMessage Reaction({ _id: mongoose.Types.ObjectId(), userId: "USERID", userName: "TESTUSERNAME", messageId: "TESTMESSAGEID", time: "TESTTIME" }); |
Javascript :: |
:: no styles are appearing in angular calendar |
:: discord.js bot credits command |
Javascript :: |
:: |
:: |
Javascript :: open image in browser fit to screen with window.open |
Javascript :: how to render file vue template in javascript with gulp |
:: |
Javascript :: useBootstrapPrefixhttp://localhost:8000/static/js/bundle.js:15261:75 |
Javascript :: JS exercise bank account constructor functions and prototypes solution |
Javascript :: javascript Arranging Coins |
Javascript :: unity rotate object to match normal |
:: javascript node await .click |
:: turf greatcircle example |
:: |
Javascript :: |
:: |