suggest create a generic function to send msg to all connected app