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
C
Customer Support
said
over 6 years ago
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
Customer Support
said
over 6 years ago
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 ?
Nipitpon Wongsuparatkul
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?
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
Customer Support
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
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics