open-vault/vault/eventbus
Christopher Swenson 404d7a57bb
events: WS protobuf messages should be binary (#19232)
The [WebSockets spec](https://www.rfc-editor.org/rfc/rfc6455) states
that text messages must be valid UTF-8 encoded strings, which protobuf
messages virtually never are. This now correctly sends the protobuf events
as binary messages.

We change the format to correspond to CloudEvents, as originally intended,
and remove a redundant timestamp and newline.

We also bump the eventlogger to fix a race condition that this code triggers.
2023-02-17 11:38:03 -08:00
..
bus.go events: WS protobuf messages should be binary (#19232) 2023-02-17 11:38:03 -08:00
bus_test.go events: WS protobuf messages should be binary (#19232) 2023-02-17 11:38:03 -08:00