webrcon icon indicating copy to clipboard operation
webrcon copied to clipboard

Would appreciate more robust commenting

Open jscix opened this issue 8 years ago • 3 comments

Hello, I am trying to write a simple library for webRCON in C#. At the moment I am having a bit of trouble understanding the handshake method here. I'm pretty bad with java-script, so trying to deduce what is happening isn't proving very fruitful.

would it be possible for someone to write up some simple comments / docs explaining the connection process?

Thanks!

jscix avatar Nov 11 '17 07:11 jscix

Connecting is pretty easy. Open a Websocket Connection to "ws://:/". Then you can send your stringified JSON messages. Your payload should look like this:

{
      Identifier: identifier, // int -> e.g.: 1000
      Message: message, // string -> e.g.: "serverinfo"
      Name: "WebRcon"
}

alexfriesen avatar Nov 30 '17 12:11 alexfriesen

@alexfriesen is there a list of commands that the server accepts anywhere?

ecielam avatar Mar 11 '18 20:03 ecielam

@ecielam There is one list of commands than you can send to the server over at the Oxide Forums. Also, Rustafied is a good Rust community site that has an online spreadsheet with some commands. It may or may not be fully up to date. Here is Rustafied's Admin Command Cheat Sheet. Those should at least give a good starting point.

blazarfox avatar Mar 12 '18 04:03 blazarfox