1.

Which of the following is not a WebSocket event?(a) open(b) close(c) error(d) deny

Answer» Correct choice is (d) deny

Explanation: There is no WebSocket event named deny. The four WebSocket events are

open

close

message

error

Listen to these events using addEventListener() or by assigning an event listener to the oneventname property of this interface.


Discussion

No Comment Found

Related InterviewSolutions