aboutsummaryrefslogtreecommitdiff
path: root/docs/api/tcp.md
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-09-07 10:09:09 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-07 10:09:09 -0700
commit5424ea3403df9cd4672290865f12b6f5b01cf2d0 (patch)
tree27e19a70fba49ffdd944c190163f5e8322d7a32f /docs/api/tcp.md
parent4b63ced72dc1b304e737d9ea055c8b6e75f46119 (diff)
downloadbun-5424ea3403df9cd4672290865f12b6f5b01cf2d0.tar.gz
bun-5424ea3403df9cd4672290865f12b6f5b01cf2d0.tar.zst
bun-5424ea3403df9cd4672290865f12b6f5b01cf2d0.zip
Doc updates for v1.0 (#4485)
* Remove v0.x messages * Add windows section to Installatino * update * update * Update * Comment out windows
Diffstat (limited to 'docs/api/tcp.md')
-rw-r--r--docs/api/tcp.md8
1 files changed, 1 insertions, 7 deletions
diff --git a/docs/api/tcp.md b/docs/api/tcp.md
index c9190875a..cba440f01 100644
--- a/docs/api/tcp.md
+++ b/docs/api/tcp.md
@@ -76,12 +76,6 @@ Bun.listen({
});
```
-{% callout %}
-
-**Note** — Earlier versions of Bun supported passing a file path as `keyFile` and `certFile`; this has been deprecated as of `v0.6.3`.
-
-{% /callout %}
-
The `key` and `cert` fields expect the _contents_ of your TLS key and certificate. This can be a string, `BunFile`, `TypedArray`, or `Buffer`.
```ts
@@ -95,7 +89,7 @@ Bun.listen({
// string
key: fs.readFileSync("./key.pem", "utf8"),
// array of above
- key: [Bun.file('./key1.pem'), Bun.file('./key2.pem')]
+ key: [Bun.file("./key1.pem"), Bun.file("./key2.pem")],
},
});
```