Pending transactions in WebGL

Hello! I need somehow to create pending for blockchain transaction. I already can collect information of transactions separately for every person(if they pending or success) but I still need to communicate with other players to don’t allow them start transaction while another is pending. So, I need to create a backend or it can be done with WebSocket or how? Regards!

I would be glad if you could tell me whether you succeeded or not?