How do you close a WebSocket connection properly? | Web Sockets | javascript Interview Questions | NextRound.in