wtx-0.5.2 has been yanked.
WTX
Intended to group different web transport implementations.
WebSocket
Provides low and high level abstractions to dispatch frames, as such, it is up to you to implement Stream with any desired logic or use any of the built-in strategies through the selection of features.
fastwebsockets served as an initial inspiration for the skeleton of this implementation so thanks to the authors.
use ;
pub async
See the examples directory for more suggestions.
Performance
There are mainly 2 things that impact performance, the chosen runtime and the number of pre-allocated bytes. Specially for servers that have to create a new WebSocket instance for each handshake, pre-allocating a high number of bytes for short-lived or low-transfer connections can have a negative impact.
