diff --git a/rust/decentraland-godot-lib/src/dcl/js/js_modules/EngineApi.js b/rust/decentraland-godot-lib/src/dcl/js/js_modules/EngineApi.js index 829c4922..7a891c0d 100644 --- a/rust/decentraland-godot-lib/src/dcl/js/js_modules/EngineApi.js +++ b/rust/decentraland-godot-lib/src/dcl/js/js_modules/EngineApi.js @@ -7,10 +7,6 @@ module.exports.crdtSendToRenderer = async function (messages) { }; } -module.exports.sendBatch = async function () { - return { events: [] } -} - module.exports.crdtGetState = async function () { const data = (await Deno.core.opAsync("op_crdt_recv_from_renderer")).map((item) => new Uint8Array(item)) @@ -18,3 +14,30 @@ module.exports.crdtGetState = async function () { data: data }; } + + +module.exports.isServer = async function() { + return { + isServer: false + } +} + +/** + * @deprecated this is an SDK6 API. + * This function subscribe to an event from the renderer + */ +module.exports.subscribe = async function(message) {} + +/** + * @deprecated this is an SDK6 API. + * This function unsubscribe to an event from the renderer + */ +module.exports.unsubscribe = async function(message) {} + +/** + * @deprecated this is an SDK6 API. + * This function polls events from the renderer + */ +module.exports.sendBatch = async function() { + return { events: [] } +}