Skip to content

Instantly share code, notes, and snippets.

@menduz
Last active February 3, 2021 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save menduz/4358bab94e57d983f679955ffb201569 to your computer and use it in GitHub Desktop.
Save menduz/4358bab94e57d983f679955ffb201569 to your computer and use it in GitHub Desktop.
loading kernel modules from Decentraland's SDK scene
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