Adding examples of how to use the websocket API