 
       # When the WebSocket opens, send any requests enqueued.
       socket.addEventListener 'open', ->
+        delay = 2
+
+        notify.info {
+          message: 'Connected to XO-Server'
+        }
+
         # New requests are sent directly.
         call = send
 


      # When the WebSocket closes, requests are no longer sent directly
      # but enqueued.
      socket.addEventListener 'close', ->
        call = enqueue

      # When a message is received, we call the corresponding
      # deferred (if any).


    # Identifier of the next request.
    nextId = 0

    # Delay in seconds from the next reconnection attempt.
    delay = 2

    # Promises linked to the requests.
    deferreds = {}
