Skip to content

Commit e01b3a4

Browse files
committed
docs: fix route config
1 parent abf38c0 commit e01b3a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/content/1.getting-started/2.installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default defineNuxtConfig({
1919
modules: ['nuxt-ws'],
2020

2121
ws: {
22-
path: '/_ws', // default undefined
22+
route: '/_ws', // default undefined
2323
}
2424
})
2525
```

docs/content/1.getting-started/3.configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default defineNuxtConfig({
1313
modules: ['nuxt-ws'],
1414

1515
ws: {
16-
path: '/_ws',
16+
route: '/_ws',
1717
topics: {
1818
defaults: ['session'],
1919
internals: ['_internal', 'notifications'],
@@ -25,8 +25,8 @@ export default defineNuxtConfig({
2525
## Options
2626

2727
::field-group
28-
::field{name="path" type="string"}
29-
Defines the default path for `useWS` to connect to the WebSocket server. - Default to `undefined`
28+
::field{name="route" type="string"}
29+
Defines the default route for `useWS` to connect to the WebSocket server. - Default to `undefined`
3030
::
3131

3232
::field{name="topics.defaults" type="string[]"}

0 commit comments

Comments
 (0)