oTree Forum >

liveSend to another group?

#1 by RudyDW

Dear all,
Is there any method to send data to players of another group or to all the players in the session?
Thank you for your help.

#2 by RudyDW

Sorry, I was not clear in my first post. 

what I mean is how can I return (from live_method) data to players of another group or to all the players in the session?

   @staticmethod
    def live_method(player, data):
        nb = data["NB"]
        return{0: {"NB": nb} }
        
This returns data to the whole group. But I would like to return data to all groups.

Thank you.

Write a reply

Set forum username