Thanks Elvin.
Let me clarify the requirement here.
1. I am also thinking of the using the Nginx stream module.
2. Actually, it has work like two servers (HTTP as well as TCP server) for the usecase I mentioned above. For TCP server I am thinking of using the nginx stream module.
But, what I was looking up here is how to pass the traffic between these two. What ever is being received on the HTTP server will be send to registered the TCP clients.
I was not sure whether that can be done through LUA or I need to develop a NGINX module for this....
Thanks, Santos