I have two servers where socket.io is hosted , communication between two apps are managed with redis.
When user 1 click on push button , on server side in redis, I am making entry as
Room:A -> User1
I found the way to manage push button with locking.
using following Redis library for the same :