talostrading / sonic

Sonic is a Go library for network and I/O programming that provides developers with a consistent asynchronous model, with a focus on achieving the lowest possible latency and jitter in Go.
MIT License
676 stars 16 forks source link

Correctly handle abnormal Websocket client close #114

Open sergiu128 opened 8 months ago

sergiu128 commented 8 months ago

We should report close: 1006 locally if the close is abnormal i.e the underlying TCP connection is closed without any WS level closing handshake.