(self, msg, room=None)
return self
send a msg to a room
send a msg to a room
send a msg to a room
def msg(self, msg, room=None):
        """
        send a msg to a room
        """
        if room:
            self.destination_room = room

        self.action_type = 'message'
        if msg is not None:
            self._add_to_meta('body', msg)
        return self
def msg ( self , msg , room = None ) : if room : self . destination_room = room self . action_type = 'message' if msg is not None : self . _add_to_meta ( 'body' , msg ) return self