WebSockets can be used for a variety of purposes, they just open a persistent connection between two parties which you send data on in both ways (in contrast to the usual request/response model).
They don't result in a "permanent refresh" in the web browser, if used on a web site displayed by a web browser.