When a driver hits the "Login" button multiple times, do not open a new Node connection if one already exists.
You need a volatile boolean connected; variable. Then do connected=true; on Socket.EVENT_CONNECT and connected=false; on Socket.EVENT_DISCONNECT
Then you have to check that variable every time the driver hits the "Login" button.
If it’s true, display something like "Please wait. Login already in progress…"
Conversation posterity:
https://bentonow.slack.com/archives/engineering/p1452550736000061