Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which method is used to close the WebSocket?

  2. A.

     Socket.flush()

    B.

     Socket.close()

    C.

     Socket.Close()

    D.

     Socket.dispose()

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The Socket.close() is used to close the WebSocket.


Be The First To Comment