While experimenting with different websocket implementations for C# .NET, I noticed that they send byte arrays with different byte orders:
-
ClientWebSocket.SendAsync
(fromSystem.Net.Sockets
default .NET library) uses little-endian byte order -
WebSocket.SendAsync
(fromwebsocket-sharp
NuGet library) uses big-endian byte order -
WatsonWsClient.Send
(fromWatsonWebsocket
NuGet library) also uses big-endian byte order
I’m sure the byte array was staying the same, I was just changing the websocket implementation.
The question is can I change the byte order while using websocket-sharp
library? Besides that small issue everything is great with the library.