library.js in the /nodebb-plugin-namePlugin
file.js in /nodebb-plugin-namePlugin/static/lib

Now I must do a lot of operation in my library.js and I must check when user is created. So I use the hook and It's everything ok, but, after I must my check in library I need to send a message to my file.js to change background color of a component. The proble is that I used this to communicate:

library.js in the /nodebb-plugin-namePlugin
file.js in /nodebb-plugin-namePlugin/static/lib

Now I must do a lot of operation in my library.js and I must check when user is created. So I use the hook and It's everything ok, but, after I must my check in library I need to send a message to my file.js to change background color of a component. The proble is that I used this to communicate: