Call Event within a Custom Card


I’m working on my first “custom card” and with this card I want to call and also listen to the custom event: “deconz_event”. Is this possible?

I thought using the Websocket API, but that seems more for external usage (not within a card) and I also can’t find a format for this “event” calling in the docs.