Caddy V2 how to proxy websoket (v2ray websocket + tls)

I tried the Named matcher to proxy web sockets, I keep getting ‘bad handshake’ when I try to connect to the websocket endpoint. Can websockets be automatically and transparently proxied? Or does the path need to be specified?

reverse_proxy localhost:4124
@websockets {
	header_regexp Connection Upgrade
	header        Upgrade websocket
}
reverse_proxy @websockets localhost:4124