Hi
I would like to be able to trigger websocket updates to connected clients
I am using mongoose-os running a http server endpoint. Clients connect
and get a web page with device data updates sent via websockets. These
are triggered periodically by MG_EV_TIMER at the moment.
It seems better to instead trigger the update from a change in the data. But
I can’t see how to do this from “outside” the endpoint/event handler system.
Can I “inject” my own events? How? Will the event handler be called on
all connections?
Any suggestions appreciated
Thanks,
John