1.

Which of the following is not the event of WebSocket API?(a) Close(b) Message(c) Send(d) ErrorThis question was addressed to me during an online exam.My question comes from Web Socket Communications topic in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct choice is (c) Send

The EXPLANATION: There are four WebSocket API, Close, Message, Error and OPEN. We can implement these events by using functions like ONMESSAGE, onopen, ONERROR, addEventListener and onclose. When there is an end of communication between client and server then onclose method is called.



Discussion

No Comment Found

Related InterviewSolutions