Describe the Bug
Both our AIOHTTP implementations of the WS subprotocols currently don't handle AIOHTTP WS messages of type "ERROR" correctly:
- Our implementation of the legacy WS subprotocol ignores messages of type ERROR (ref)
- Our implementation of the newer WS subprotocol complains that it's not a TEXT message and closes the connection (ref)
Instead, both implementations should return an error to the client and close the connection.
Describe the Bug
Both our AIOHTTP implementations of the WS subprotocols currently don't handle AIOHTTP WS messages of type "ERROR" correctly:
Instead, both implementations should return an error to the client and close the connection.