liberty-prettydiff
Version:
Language aware code comparison tool for several web based languages. It also beautifies, minifies, and a few other things.
21 lines (20 loc) • 475 B
Plain Text
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body></body>
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io("<%= path %>");
socket.on("message", function (message, next) {
console.log(message);
next();
});
socket.emit("subscribe", {
"room": [1],
"uid" : "<%= uid %>"
});
</script>
</html>