I have a simple websocket program where a server and client exchange a message and then exit, taken from a geeks for geeks tutorial: https://www.geeksforgeeks.org/socket-pro