WebSockets In JavaScript Interview Questions – JavaScript WebSockets Online Quiz

Question 1:  WebSocket is mainly used for

Question 2:  Which method is used to create a WebSocket in JavaScript

Question 3:  The readyState value 0 in WebSocket means

Question 4:  Which event is triggered when WebSocket is opened successfully

Question 5:  Which method is used to send data via WebSocket

Question 6:  Which event is fired when a message is received from the server

Question 7:  Which protocols are supported by WebSocket

Question 8:  The close event in WebSocket indicates

Question 9:  Which property is used to check current state of WebSocket

Question 10:  WebSocket helps in reducing

Leave a Reply