Skip to content

Commit b891093

Browse files
authored
Apply suggestions from code review
1 parent 1397c1b commit b891093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/durable-objects/best-practices/websockets.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This guide covers how to use Durable Objects as WebSocket servers that can conne
1111

1212
There are two sets of WebSockets API
1313

14-
1. Using the native Durable Object WebSocket API, which allow your Durable Object to hibernate when not actively doing work without disconnecting clients **recommended**
14+
1. Native Durable Object WebSocket API, which allows your Durable Object to hibernate without disconnecting clients when not actively doing work **(recommended)**
1515
2. Web Standard WebSocket APIs, using the familiar `addEventListener` event pattern.
1616

1717
### What are WebSockets?
@@ -401,7 +401,7 @@ Code updates will disconnect all WebSockets. If you deploy a new version of a Wo
401401

402402
:::
403403

404-
### Related resources
404+
## Related resources
405405

406406
- [Mozilla Developer Network's (MDN) documentation on the WebSocket class](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket)
407407
- [Cloudflare's WebSocket template for building applications on Workers using WebSockets](https://github.com/cloudflare/websocket-template)

0 commit comments

Comments
 (0)