LDEV-4540 Introduce hooks in command websockets
When a command is added, the JSON can contain "hookTrigger" and
"hookParams" attributes.
hoo… Show more
When a command is added, the JSON can contain "hookTrigger" and
"hookParams" attributes.
hoo… Show more
LDEV-4540 Introduce hooks in command websocketsWhen a command is added, the JSON can contain "hookTrigger" and"hookParams" attributes.hookTrigger is just a string which uniquely identifies a page. If thispage set the same commandWebsocketHookTrigger, then command is consumedand function defined on this page as commandWebsocketHook is run withparameters taken from hookParams from JSON.This way back end can tell exact page on front end to run any code itdefines itself.
Show less