<!DOCTYPE html>
<head>

    <!-- Valet serves up socket.io.js on a special endpoint -->
    <script src="http://valet.jit.su/socket.io/socket.io.js"></script>

    <script type="text/javascript">

        // Connect on the "buildingTemp" namespace
        var buildingTemp = io.connect('http://valet.jit.su/buildings/123/temperature');

        // "Connect" events are fired when the connection happens successfully
        buildingTemp.on('connect',function(){
            console.log('connected to the "buildin