Open the developer tools and use pingText or pingBinary to see the effect. Close the web socket using webSocket.close().