added non-blocking example for web client in websocket