I was trying to use the context on the addCustomer handler. The reasons why I was getting the context as undefined was because I wasn't using the @Ctx decorator.
Something else I found out is that when handling events, interceptors won't work. The ServerFaye is missing the this.send(response$) call when dealing with event handlers. Apart from that, I think the first version of my transport is done. Thanks!
Awesome. I'll put that interceptor issue on my to-do list (a bit long at the moment 😉) Thanks for reporting, and looking forward to seeing your transporter!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi John, I just found out what was happening.
I was trying to use the context on the
addCustomer
handler. The reasons why I was getting the context as undefined was because I wasn't using the@Ctx
decorator.Something else I found out is that when handling events, interceptors won't work. The
ServerFaye
is missing thethis.send(response$)
call when dealing with event handlers. Apart from that, I think the first version of my transport is done. Thanks!Awesome. I'll put that interceptor issue on my to-do list (a bit long at the moment 😉) Thanks for reporting, and looking forward to seeing your transporter!