<!DOCTYPE html>
<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>