diff options
Diffstat (limited to 'docs/api')
| -rw-r--r-- | docs/api/websockets.md | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/docs/api/websockets.md b/docs/api/websockets.md index 2220b9c8d..f04d10fc6 100644 --- a/docs/api/websockets.md +++ b/docs/api/websockets.md @@ -17,13 +17,13 @@ Internally Bun's WebSocket implementation is built on [uWebSockets](https://gith  To connect to an external socket server, create an instance of `WebSocket` with the constructor.  ```ts -const socket = new WebSocket("ws://localhost:8080"); +const socket = new WebSocket("ws://localhost:3000");  ```  Bun supports setting custom headers. This is a Bun-specific extension of the `WebSocket` standard.  ```ts -const socket = new WebSocket("ws://localhost:8080", { +const socket = new WebSocket("ws://localhost:3000", {    headers: {      // custom headers    }, | 
