Skip to content

Commit b3326b5

Browse files
authored
docs: fix syntax highlighting in WebSocket.md (#4814)
Updated code block syntax highlighting from 'mjs' to 'js' so that syntax highlighting works.
1 parent 393c0da commit b3326b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/api/WebSocket.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Arguments:
1515

1616
This example will not work in browsers or other platforms that don't allow passing an object.
1717

18-
```mjs
18+
```js
1919
import { WebSocket, ProxyAgent } from 'undici'
2020

2121
const proxyAgent = new ProxyAgent('my.proxy.server')
@@ -28,7 +28,7 @@ const ws = new WebSocket('wss://echo.websocket.events', {
2828

2929
If you do not need a custom Dispatcher, it's recommended to use the following pattern:
3030

31-
```mjs
31+
```js
3232
import { WebSocket } from 'undici'
3333

3434
const ws = new WebSocket('wss://echo.websocket.events', ['echo', 'chat'])
@@ -44,7 +44,7 @@ const ws = new WebSocket('wss://echo.websocket.events', ['echo', 'chat'])
4444
4545
This example will not work in browsers or other platforms that don't allow passing an object.
4646

47-
```mjs
47+
```js
4848
import { Agent } from 'undici'
4949

5050
const agent = new Agent({ allowH2: true })

0 commit comments

Comments
 (0)