-
Which of the following is not the event of WebSocket API?
-
- Error
- Close
- Message
- Send
- None of these
Correct Option: D
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.