At the moment, 'requireOnce' works on regular Cloud Code.
However, inside Real Time Scripts, it seems to be an undefined keyword. Trying to use 'requireOnce' in a Real Time script produces the following error:
ReferenceError: "requireOnce" is not defined in <my file>.js at line number XX
Seems like only 'require' is supported in Real Time Scripts at the moment.
Julio Gorge
At the moment, 'requireOnce' works on regular Cloud Code.
However, inside Real Time Scripts, it seems to be an undefined keyword. Trying to use 'requireOnce' in a Real Time script produces the following error:
ReferenceError: "requireOnce" is not defined in <my file>.js at line number XX
Seems like only 'require' is supported in Real Time Scripts at the moment.