websocket: handle parser errors more consistently
KhafraDev opened this issue · 0 comments
KhafraDev commented
In a number of cases, errors parsing frames result in us manually calling failWebSocketConnection
. We should replace these calls by calling the stream callback with an error, which will give us more control over the closing and will perform the correct checks before closing.