kerryjiang / SuperSocket

SuperSocket is a light weight, cross platform and extensible socket server application framework.
Apache License 2.0
3.94k stars 1.14k forks source link

建议 CloseAsync(CloseReason closeReason) 不用枚举做参数,使用int类型,方便使用时扩展 #747

Open liuguiyou opened 3 months ago

liuguiyou commented 3 months ago

如题

kerryjiang commented 2 months ago

You are right. Although rfc6455 has some defined close reason codes, but we should be able to use other close code than the predefined codes.