We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
authorize
1 parent f86534a commit 91eec9cCopy full SHA for 91eec9c
README.md
@@ -99,7 +99,7 @@ You can mark a channel as private and then authorize the client to subscribe to
99
100
import type { HttpContext } from '@adonisjs/core/http'
101
102
-transmit.authorizeChannel<{ id: string }>('users/:id', (ctx: HttpContext, { id }) => {
+transmit.authorize<{ id: string }>('users/:id', (ctx: HttpContext, { id }) => {
103
return ctx.auth.user?.id === +id
104
})
105
```
0 commit comments