Apollo GraphQL subscriptions is not working in Vuejs
Finally, I got the issue. Actually, I was using Classical load balancer
which not supporting WebSocket requests.
I configured the application load balancer and attached it to my server instance. It's working properly now.
My code was proper.