-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[subscriptions] custom onConnect #104
Comments
Maybe it's related #75 |
You're right, it's definitely related. @shawnmcknight do you have any thoughts on this? |
@Hugome @shawnmcknight sorry to bother you again but do you have any thoughts about this? |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think I found a small issue when passing a custom
onConnect
middleware. The defaultonConnect
looks like thismoleculer-apollo-server/src/service.js
Lines 656 to 659 in 2463499
which simply calls the
ws
action to set the paramsmoleculer-apollo-server/src/service.js
Lines 32 to 50 in 2463499
However, when passing custom
onConnect
I can't access thews
action because thethis
points to aSubscriptionServer
instead of moleculerService
.To solve it I've added the following lines in the
created()
function:@Hugome can you please check if my approach is correct?
The text was updated successfully, but these errors were encountered: