You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that the graphql_headers were not being passed down during the realtime handshake initialization. I needed a custom header in the Auth Lambda but I wasn't receiving it in the requestHeaders from the event object. After debugging, I found this line where the _initializeWebSocketConnection does the handshake:
Hi!
I've used patch-package to patch
[email protected]
for the project I'm working on.I found that the
graphql_headers
were not being passed down during the realtime handshake initialization. I needed a custom header in the Auth Lambda but I wasn't receiving it in therequestHeaders
from theevent
object. After debugging, I found this line where the_initializeWebSocketConnection
does the handshake:aws-mobile-appsync-sdk-js/packages/aws-appsync-subscription-link/src/realtime-subscription-handshake-link.ts
Line 399 in ea05577
Here is the diff that solved my problem:
Now it works using
setContext
from Apollo:This should solve #630 #761 and maybe #585
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: