updated broadcast method for new messages API