Hi @dsharma
When you place an order, first request goes to onepagecontroller's saveOrder method, from where we are calling order repository's create method in sales package , when order successfully created then we fired this event there with order data like -
Event::fire('checkout.order.save.after', $order);then listing this event using above mentioned way and calling a function to send message of order place.
Thanks