Websockets are used for real-time communication, as an alternative to the REST API. There are protocols like nostr that are based on websockets. It would be interesting to have a way to create a route for communication via websockets.