@ansumanm on_message callback is to get all the data received without processing it. By default binary data is processed and sent parsed data in on_ticks callback, similarly text data is parsed for order update and sent in on_order_update callback. You can check source code to see how data is parsed.
on_message can be used for order updates. You get tick data in binary format. You can follow up here.