You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/durable-objects/best-practices/websockets.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ This guide covers how to use Durable Objects as WebSocket servers that can conne
11
11
12
12
There are two sets of WebSockets API
13
13
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)**
15
15
2. Web Standard WebSocket APIs, using the familiar `addEventListener` event pattern.
16
16
17
17
### What are WebSockets?
@@ -401,7 +401,7 @@ Code updates will disconnect all WebSockets. If you deploy a new version of a Wo
401
401
402
402
:::
403
403
404
-
###Related resources
404
+
## Related resources
405
405
406
406
-[Mozilla Developer Network's (MDN) documentation on the WebSocket class](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket)
407
407
-[Cloudflare's WebSocket template for building applications on Workers using WebSockets](https://github.com/cloudflare/websocket-template)
0 commit comments