Closed EvanPerreau closed 2 months ago
Hey @EvanPerreau! 👋🏻
Could you please provide a repository with the minimum amount of code to reproduce your issue? As per the Transmit codebase, it should work fine.
Hey @RomainLanz , I guess this error is throw becasue i don't config the routeHandleModifier in transmit config. But, a new error appear :
Are you sure you are not importing the kernel at the top of your file too?
@RomainLanz it's my transmit.ts config file:
and my kernel.ts file :
You can notice that you are importing the middleware at the top of your file instead of in the callback. Please, check the documentation again.
📚 https://docs.adonisjs.com/guides/digging-deeper/transmit#configuration
@RomainLanz I also have the error when I import middleware in the callback like the doc :
server is undefined
That's weird, but let me devise a new way to modify the route. It will solve this issue.
@RomainLanz ok tank's
hey @RomainLanz, some good news about your modifications to solve this issue ?
Hey @EvanPerreau! 👋🏻
Could you please try to install @adonisjs/transmit@next
and add the following code to your route file:
import transmit from '@adonisjs/transmit/services/main'
transmit.registerRoute(() => {
// Your route's customization code here
})
Did you have the chance to try the new version? Do you have any feedback or issues before I make a final release?
Hello, try to use the new version but I was not convinced, i switch to WebSocket
Package version
1.0.2
Describe the bug
Hello, I have a huge problem with the transmit authorization, I have a authorization for a channel :
with this policy (the policy always return true for debug)
when i try to connect my front end to the channel
but if I directly return true in the channel auth config :
it work 🙃
Reproduction repo
No response