registerBeforeEvent and registerAfterEvent

May I ask about the purpose of these two registrations in the JS runtime (registerBeforeEventand registerAfterEvent)? There doesn’t seem to be any documentation about them. The comment mentions “Register before Hook for RPC Event function,” but based on testing, the logic doesn’t seem to execute after the RPC call.

Hello @mengxin,

I managed to successfully register and execute both hooks after invoking the Event API.