Can't proxy websockets through Caddy

Hello, komrads. This question was asked and solved a long time ago, but I’m still a little bit confused about how this works.

What I’m trying to do:
I started a Socket.io (node.js) server at :1337 port and I want connect like this: https://domain.com/socket.io, but it does not work.

I tried this config:
proxy /socket.io localhost:1337 {
websocket
}

Logs are empty. Hope for help, thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.