I'm trying to send a hex character to a WebSocket4net socket with a C# client. If I send either of the following syntaxes, it works and sends '12'.
_webSocketClient.Send("\x12");
_webSocketClient.Send("\u0012");
When I try to send this, it sends 'C3 B6'.
_webSocketClient.Send("\xF6");
I don't want to use the overloaded method for sending binary data. I'd like to send this as a hex string. How can I send this character?
I'm setting up the Websocket like this:
_webSocketClient = new WebSocket4Net.WebSocket("wss://www.example.com", "", null, null, "Mozilla","http://www.example.com", WebSocketVersion.None);