1.

How will you transmit data using the connection?(a) send(data)(b) Socket.send(“data”)(c) Socket.send(data)(d) Socket(data)This question was addressed to me in my homework.Query is from Web Sockets topic in section Sockets of JavaScript

Answer»

Correct option is (C) SOCKET.send(DATA)

To explain I would say: The Socket.send(data) method transmits data USING the connection. This Socket method sends data to CONNECTED socket.



Discussion

No Comment Found

Related InterviewSolutions