I am facing major latency and data loss mqtt over websocket. can you suggest what would be the possible causes?

Asked by 7c0f2a2e during our HiveMQ & Kafka webinar

In order to find the cause of what you are seeing here I would first attempt comparing results of the websocket listener to ones of a regular TCP listener. This would help narrow down the search by first ensuring message flow through the network is in principle possible and reliable.