sta / websocket-sharp

A C# implementation of the WebSocket protocol client and server
http://sta.github.io/websocket-sharp
MIT License
5.73k stars 1.66k forks source link

FragmentLength should better not be hard coded #686

Open zhouwenkan opened 2 years ago

zhouwenkan commented 2 years ago

FragmentLength should better not be hard coded, and in WebSocketFrame.cs ToArray() function, the 1024 should better not be hard coded as well, IMO.