jchristn / WatsonWebsocket

A simple C# async websocket server and client for reliable transmission and receipt of data
MIT License
277 stars 53 forks source link

Added overload for SendAsync and SendAndWaitAsync that takes ArraySeg… #91

Closed joreg closed 2 years ago

joreg commented 2 years ago

…ment

This allows for applications to send data out of larger arrays without the need to first copy the data into an array with the exact size that they want to send.

jchristn commented 2 years ago

Thank you @joreg - this is an excellent enhancement! Please re-open if any issues.

NuGet: https://www.nuget.org/packages/WatsonWebsocket/2.3.3 Commit: https://github.com/jchristn/WatsonWebsocket/commit/addb340d9e40c3a29357b0bbfc2297706b23976c