prysm-pulse/beacon-chain/rpc/apimiddleware
Jim McDonald 5256751e8b
Trim SSE event names. (#9342)
* Trim SSE event names.

When sending SSE events the event name contains trailing whitespace.
This patch removes the whitespace before processing the event, ensuring
it is easily parsed by clients.

* Separate test.

* Test receiveEvents, not writeEvent.

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-11 23:00:39 +00:00
..
BUILD.bazel Restructure RPC packages to be future compatible (#9136) 2021-07-02 15:54:52 +00:00
custom_handlers_test.go Trim SSE event names. (#9342) 2021-08-11 23:00:39 +00:00
custom_handlers.go Trim SSE event names. (#9342) 2021-08-11 23:00:39 +00:00
custom_hooks_test.go Implement PrepareBeaconCommitteeSubnet in the validator API (#9318) 2021-08-05 07:23:52 +00:00
custom_hooks.go Implement PrepareBeaconCommitteeSubnet in the validator API (#9318) 2021-08-05 07:23:52 +00:00
endpoint_factory.go Improve API Middleware design (#9324) 2021-08-05 20:21:43 +00:00
structs.go Implement PrepareBeaconCommitteeSubnet in the validator API (#9318) 2021-08-05 07:23:52 +00:00