Skip to content

Commit 71a1bda

Browse files
committed
docs: fix typo
(cherry picked from commit 7f0d97f)
1 parent 7197cbd commit 71a1bda

File tree

2 files changed

+4
-4
lines changed
  • site
    • docs/extensions
    • i18n/en/docusaurus-plugin-content-docs/current/extensions

2 files changed

+4
-4
lines changed

site/docs/extensions/ws.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,12 @@ client.on('ping', heartbeat);
286286

287287
```typescript
288288
import { Configuration, Inject } from '@midwayjs/core';
289-
import { MidwayWSFramework } from '@midwayjs/ws';
289+
import { Framework } from '@midwayjs/ws';
290290

291291
@Configuration()
292292
export class WSConfiguration {
293293
@Inject()
294-
wsFramework: MidwayWSFramework;
294+
wsFramework: Framework;
295295

296296
async onReady() {
297297
// 设置升级前鉴权处理器

site/i18n/en/docusaurus-plugin-content-docs/current/extensions/ws.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,12 @@ You can set up an authentication handler when the application starts:
286286

287287
```typescript
288288
import { Configuration, Inject } from '@midwayjs/core';
289-
import { MidwayWSFramework } from '@midwayjs/ws';
289+
import { Framework } from '@midwayjs/ws';
290290

291291
@Configuration()
292292
export class WSConfiguration {
293293
@Inject()
294-
wsFramework: MidwayWSFramework;
294+
wsFramework: Framework;
295295

296296
async onReady() {
297297
// Set up pre-upgrade authentication handler

0 commit comments

Comments
 (0)