 
 # Socket.io connections
 at connection: ->
-    send 'message', text: 'Hello!'
 
 # Default client-side code to include.
 client ->

                div 'data-role': 'header', ->
                    h1 'traPHIcam.com'
                div 'data-role': 'content', ->
                    @content

                $('div[data-role="content"]')
                    .append $('<p>').text "#{msg.message.text}"
            if msg.currentPosition
                $('p#stats').text """It looks like you're at
(#{msg.currentPosition.position.coords.latitude}, #{msg.currentPosition.position.coords.longitude}), give or take #{msg.currentPosition.position.coords.accuracy} feet and that there's at least #{msg.currentPosition.cameras.length} cameras nearby."""

                for camera in msg.currentPosition.cameras
                    $('ul#cam-list').append($('script#cam-item').tmpl(camera))
                $('ul#cam-list').listview 'refresh'

        socket.connect()

