Beta
Allows for registering an event handler that responds to inbound /scriptevent commands.
Protected
Optional
This function can't be called in read-only mode.
This function can throw errors.
Allows for registering an event handler that responds to inbound /scriptevent commands.