Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would appreciate more robust commenting #27

Open
jscix opened this issue Nov 11, 2017 · 3 comments
Open

Would appreciate more robust commenting #27

jscix opened this issue Nov 11, 2017 · 3 comments

Comments

@jscix
Copy link

jscix commented Nov 11, 2017

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!

@alexfriesen
Copy link
Contributor

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"
}

@ecielam
Copy link

ecielam commented Mar 11, 2018

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

@blazarfox
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants