add example of websocket API use