Rcon Websocket

can someone explain to me how to establish an RCON connection to a server with C#?
Do I need a webrcon server to send and receive data or does it all go through the websocket library?

Try having a look at websocketsharp. Then for your address use "ws://ip:port/rconpassword"