Last active
February 3, 2021 14:04
-
-
Save menduz/4358bab94e57d983f679955ffb201569 to your computer and use it in GitHub Desktop.
loading kernel modules from Decentraland's SDK scene
This file contains 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
executeTask(async () => { | |
const module = await dcl.loadModule('@decentraland/CommunicationsController') | |
const rpcResult = await dcl.callRpc(module.rpcHandle, 'send' /* remote method */, [message /* argument list */]) | |
/** | |
The code avobe is the same as: | |
import {send} from "@decentraland/CommunicationsController" | |
executeTask(async () => { | |
await send(message) | |
}) | |
*/ | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment