Chat apps and real time data display apps (e.g. crypto price ticker) are perfect use cases for web sockets. But if all you need is some occasional data from the api, it is a bit overkill to use web sockets. Also, you can’t really go serverless with websockets, because the backend function will not be available after a while (30 seconds for vercel for example).