Last active
August 12, 2025 14:11
-
-
Save developerjamiu/147ff6a24230efc8d371816f5966cc4c to your computer and use it in GitHub Desktop.
Testing out Globe Runtime Remote Module Call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sdk = { | |
init: function () { | |
return {}; | |
}, | |
functions: { | |
greet: function (_, name, callbackId) { | |
const greeting = `Hello, ${name}!`; | |
const result = new TextEncoder().encode(greeting); | |
Dart.send_value(callbackId, result); | |
}, | |
}, | |
}; | |
export default sdk; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment