Expected behavior for stream error event is the error instance in the argument. Actual behavior is we get a WebSocket instance there and no error info.
This is also a bit of a security issue because I'm trying to log these errors and instead I log a data structure with an SNS access token inside (it's in the request URI).
Expected behavior for stream error event is the error instance in the argument. Actual behavior is we get a
WebSocket
instance there and no error info.This change fixes it.