Sign In Register

How can we help you today?

Start a new topic
Answered

Script that gets called at every single event?

I'm looking for some kind of middleware here. I want to call a script before every single events called from the client. Whether it's Authentication event, VirtualGoods events or even my own custom events. Whatever it's going to call, this script has to be called first. Is there any place for that?


Best Answer

HiĀ Nipitpon,


You could create a module and 'require' it in the Cloud Code of the Requests that you need to use it in. You could also 'require' this module in the Cloud Code of LogEventRequest to cover all of your custom events. What exactly would you like to do before each event ?


Thanks,

Liam

1 Comment

Answer

HiĀ Nipitpon,


You could create a module and 'require' it in the Cloud Code of the Requests that you need to use it in. You could also 'require' this module in the Cloud Code of LogEventRequest to cover all of your custom events. What exactly would you like to do before each event ?


Thanks,

Liam

Login to post a comment