WebSocket Write a program that opens a connection to a WebSocket endpoint, collects data for 10 seconds and close the connection.