Fire events through websocket connection


Is it possible to fire an event through a websocket connection? I know that I can call services and fetch data but I can’t find any documentation on how to fire an event. Is the only way to first request a signed path and then fire the event through a REST API call? I want to simulate a key press from an aqara button from javascript.


I believe you can do this with Node-Red