-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(websocket): Use a buffer for most WS messages in WebGL client res…
…ulting in 0 alloc for most messages (#848) * fix(websocket): Use a buffer for most WS messages resulting in 0 alloc for most messages * Use a configurable maximum message size * Use the maximum message size on the server too * Use <= instead of < for buffer.Length * Show lengths in Exception message Co-Authored-By: Katori <znorth@gmail.com> * Show lengths in close message Co-Authored-By: Katori <znorth@gmail.com> * Allow messages of messagesize Co-Authored-By: Katori <znorth@gmail.com> * Allow messages of maxMessageSize Co-Authored-By: Katori <znorth@gmail.com> * Show message lengths in close message Co-Authored-By: Katori <znorth@gmail.com> * Don't initialize buffer if already done Co-Authored-By: Katori <znorth@gmail.com> * Always allocate buffer size on client construction * Use a non-static buffer to avoid allocation issues
- Loading branch information
Showing
4 changed files
with
43 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters