Skip to content

Commit 7739d79

Browse files
authored
doc(runtime-apis/diagnostics-channel) fix code block syntax (#19077)
1 parent a9ca63e commit 7739d79

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/content/docs/workers/runtime-apis/nodejs/diagnostics-channel.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import { Render } from "~/components"
1010

1111
The [`diagnostics_channel`](https://nodejs.org/dist/latest-v20.x/docs/api/diagnostics_channel.html) module provides an API to create named channels to report arbitrary message data for diagnostics purposes. The API is essentially a simple event pub/sub model that is specifically designed to support low-overhead diagnostics reporting.
1212

13-
````js
14-
1513
```js
1614
import {
1715
channel,
@@ -32,7 +30,7 @@ myChannel.publish({ foo: 'bar' });
3230
subscribe('my-channel', (message) => {
3331
console.log(message);
3432
});
35-
````
33+
```
3634

3735
All `Channel` instances are singletons per each Isolate/context (for example, the same entry point). Subscribers are always invoked synchronously and in the order they were registered, much like an `EventTarget` or Node.js `EventEmitter` class.
3836

0 commit comments

Comments
 (0)