socket: emit upgrade errors as `upgradeError` instead of `error`
Release 0.8.0