API gateway on Workers for websocket connections


https://support.cloudflare.com/hc/en-us/articles/200169466-Can-I-use-CloudFlare-with-websockets- mentions that Cloudflare Workers support proxying websocket connections. I understand that it cannot act as an endpoint for ws connections nor manipulate individual messages.

I wanted to find out if Workers can act as an API gateway for rate-limiting and to block the ws proxying before it even begins if the rate-limit is reached.

I tried searching the workers API documentation but could not find any references to websockets.