Which method is used to close the WebSocket?
(a) Socket.flush()
(b) Socket.close()
(c) Socket.Close()
(d) Socket.dispose()
This question was posed to me during an interview.
The question is from Web Sockets topic in section Sockets of JavaScript
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)