             #Send message to the recipient user
             nowjs.getClient clientId, ->
                 @now.receiveMessage({message:message,fromUser:fromUser,messageType:'privateMessage'})
+
+
+
+
+        @everyone.now.updateGroupData = (data) ->
+            #data should be an object.  Update groupData with the data object
+
+            for key,val of data
+                groupData[@now.group][key] = val
+
+        @everyone.now.connectHost = ->
+            groupData[@now.group].hostConnected = true
+
+            functionInfo = {functionName:'hostIsConnected',args:groupData[@now.group]}
+
+            #Tell all members that the host is connected
+            if @now.group?
+                console.log 'tocall hostIsConnected'
+                nowjs.getGroup(@now.group).now.receiveMessage({message:functionInfo, fromUser:@now.name, messageType:'groupFunction'})
 
 
         @everyone.now.addActiveDoc = (docInfo) ->

            console.log '==========================='
            console.log JSON.stringify(@now.group)


            if @now.group?
                nowjs.getGroup(@now.group).now.receiveMessage({fromUser:"server", message:"#{@now.name} has joined the session.", messageType:'serverMessage'})

        @everyone.now.callGroupFunction = (functionInfo) ->
            #Call a specific function for everyone in a group

        )

        @everyone.now.joinGroup = (groupName) ->
            console.log('groupname: '+groupName)
            #remove the client from any rooms he's currently in
            nowjs.getGroup(@now.group).removeUser(@user.clientId)

