Closed localcc closed 3 years ago
:white_check_mark: Build Fleck 0.0.58-ci completed (commit https://github.com/statianzo/Fleck/commit/8529c8839f by @localcc)
:white_check_mark: Build Fleck 0.0.58-ci completed (commit https://github.com/statianzo/Fleck/commit/8529c8839f by @localcc)
I'm fine with bringing this in, but could you explain the scenario where you're needing to send a different code?
When client tries to authenticate, I check his headers for authentication token, etc. and I need to disconnect him with different reasons for different authentication errors (e.g. no user, invalid token, expired token)
Makes sense. Just a heads up, as they are websocket status codes, using the 4000-4999
range is for applications.
Published as 1.2.0
There is Close(int code); method in WebSocketConnection, but no such method in Interface, so I added that to interface.