Multiple Handlers

I have three handlers that are being created for three different devices but I have an issue where when I send a broadcast message only one of the handlers receives the message the others don’t but when I send commands from the REST API it works perfectly well. What could possibly be the problem.