Hey everyone,
I'm building an app that needs access to Ziti events from the controller. I can log the events to a file but I'm curious if theres support for broadcasting those events on a web socket connection. It would be easier than writing a server that parses and broadcasts the events myself. Thanks!
Yes, take a look at ziti/ziti/cmd/fabric/stream_events.go at main · openziti/ziti · GitHub which is the code implementing ziti fabric stream events
. That CLI command uses a websocket to stream the events.
Note that the controller doesn't do any caching of events, so if you lose the websocket you can't replay events.
There's also an amqp destination for the event stream. See the Controller Configuration Reference | OpenZiti
Paul
1 Like
Awesome thanks, it would be really great if the /fabric/v1/ws-api endpoint could be authenticated over a zt-session token.
That endpoint shares the same authentication mechanisms as the edge apis, so you should be able to use a zt-session token.
Paul