Custom event jitsi, send data to client

I want to add one button on jitsi and on click of it I want to send some data to client side, I am able to add button on hosted jitsi server but I don’t know how to create an event on click of it, to send data back from server to client. @damencho or anyone can help me with this?

Please do not tag people in your posts requesting help unless they’re already helping you with the issue.

Sorry for that.