Add API method to stop websocket activity