I'm making a small website. It has a realtime chat page, accounts and signing in,a home page, and a blog. For the entire site I've been using websockets for communication, but I've heard that REST apis are better for handling things that don't need to be realtime. I'm planning on refactoring things to make it more optimal, but I'm not sure what traffic should be using http requests and what should be using websockets.
If I need websockets for some features, is it better to just use it for everything?