 
     @ws.onmessage = (e) =>
       pipe = JSON.parse( e.data )
-      console.log( "ws:onmessage", pipe )
+      console.log( 'ws:onmessage', pipe )
 
       # go through all blocks
       for item in pipe

      console.log( "onopen" )

      # close error message if exists
      if @error
        @error.modalHide()
        @error = undefined

      @send(data)

    @ws.onclose = (e) =>
      console.log( 'onclose', e )

      # show error message, first try to reconnect
      if !@error
        message = =>
          @error = new App.ErrorModal(
            message: 'No connection to websocket, trying to reconnect...'
          )
        @error_delay = @delay message, 7000

      # try reconnect after 4.5 sec.
      @delay @connect, 4500

    @ws.onerror = ->
      console.log( 'onerror' )

