Update API for broadcast and message, update test html page