Computer Science, asked by Zara1346, 9 months ago

Which web socket event will occur when the client or user receives data from the server?

Answers

Answered by mariospartan
14

Answer:

An event called ‘message’ will occur when the client or user receives data from the server.

Explanation:

The web sockets are considered to be the coming generation’s communication technology (bidirectional) utilized by web-based applications that have been operated on a single socket and can be exposed through a JS (javascript) interface in any of the HTML supporting browsers.

Once the connection has been made with the webserver, data sending and data receiving have occurred. There are several events like open, message, error and close. Here, message event will have occurred when the user received the data from the server using event handler ‘Socket.onmessage’.

Similar questions