Test whether a WebSocket endpoint accepts a connection and returns responses to a message sent from the browser.