5
lorentz
5y

CGI is fun, websockets are fun, why on earth is it so fucking hard to have both of them with proper switching using at most one extra program apart from my handlers?
By proper switching I mean that you actually track connections and upgrade headers to decide what to do, rather than forcing websocket connections onto a separate HTTP resource just to tell the difference.

Comments
  • 2
    BTW I want this so bad because my API works with a tree structure so I would like to use the HTTP path to navigate it.
  • 1
    @Lor-inc what about instead of routing, you can pass the arguments as is to another function to handle it seperately?
    Also idk wss://localhost/websocket is better than just wss://localhost
  • 1
    @melezorus34 At this point I want to do it this way less because I need to and more because it has no technical limitations or disadvantages and it pisses me off to no end how it hasn't been solved yet.
  • 1
    Caddy is fucking brilliant.
Add Comment