Skip to content

Commit 7f6ff82

Browse files
authored
Clarifiy that allow_custom_ports flag affects WebSockets.
1 parent 50c25de commit 7f6ff82

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)