Skip to content

Commit f271f7c

Browse files
rnbradyelithrar
authored andcommitted
[Workers] Clarify that allow_custom_ports flag affects WebSockets. (#17364)
1 parent cba7ac8 commit f271f7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content/compatibility-dates/allow-custom-ports.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ const response = await fetch("https://example.com:8000");
2525
With allow_custom_ports the above example would fetch `https://example.com:8000` rather than
2626
`https://example.com:443`.
2727

28+
Note that creating a WebSocket client with a call to `new WebSocket(url)` will also obey this flag.

0 commit comments

Comments
 (0)