 
     @watchRef.on "value", (snapshot) =>
       @watchMap = snapshot.val() or {}
+
+    @userRef.child("status").onDisconnect().set "offline"
 
   fetchUsers: ->
     @workspaceRef.once "value", (snapshot) =>

        @addToHistory { message: record, by: KD.nick() }
        @watchRef.child(@nickname).set "everybody"
        @sessionKeysRef.child(@nickname).set @sessionKey

        @loader.destroy()
        @chatView?.show()

    @chatRef        = @workspaceRef.child "chat"
    @watchRef       = @workspaceRef.child "watch"
    @usersRef       = @workspaceRef.child "users"
    @userRef        = @usersRef.child KD.nick()
    @sessionKeysRef = @firebaseRef.child  "session_keys"

  bindRemoteEvents: ->
