Pass callback between javascript and go [v2] #1417
Unanswered
TechplexEngineer
asked this question in
Q&A
Replies: 1 comment
-
Could you use events for this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to pass a callback from javascript to go?
Here is the generated javascript method:
https://github.com/TechplexEngineer/BionicDash/blob/main/frontend/wailsjs/go/goNTCore/Client.d.ts#L45
Here is the corresponding golang function:
https://github.com/TechplexEngineer/goNTCore/blob/main/client.go#L565
And the type definition for
ListenerCallback
https://github.com/TechplexEngineer/goNTCore/blob/main/client.go#L67
Are the limitation of the javascript <-> go interface documented? (Sorry if I missed that)
Beta Was this translation helpful? Give feedback.
All reactions