404d7a57bb
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. |
||
---|---|---|
.. | ||
audit.go | ||
auth.go | ||
connection.go | ||
controlgroup.go | ||
error.go | ||
event.pb.go | ||
event.proto | ||
events.go | ||
identity.pb.go | ||
identity.proto | ||
lease.go | ||
lease_test.go | ||
logical.go | ||
logical_storage.go | ||
managed_key.go | ||
plugin.pb.go | ||
plugin.proto | ||
request.go | ||
response.go | ||
response_util.go | ||
response_util_test.go | ||
secret.go | ||
storage.go | ||
storage_inmem.go | ||
storage_inmem_test.go | ||
storage_test.go | ||
storage_view.go | ||
system_view.go | ||
testing.go | ||
token.go | ||
token_test.go | ||
translate_response.go | ||
version.pb.go | ||
version.proto | ||
version_grpc.pb.go |