Home » HTML » Html miscellaneous » Question
  1. Messages from the server are received by ____.
    1. blob
    2. arrayBuffer
    3. send
    4. onmessage
    5. None of these
Correct Option: D

onmessage function is used for receiving messages from the server. E.g. memeDocket.onmessage = function (eve) { console.log(eve.data); }. For sending data as a string we use ArrayaBuffer and Blob.



Your comments will be displayed only after manual approval.