Skip to content

Repository files navigation

Websocket

GitHub BuildCoverageGo Report CardGoDoc

Rust Web RCON Protocol implementation in Go.

Supported Games

  • Rust (add +rcon.web 1 to the args when starting the server)

Install

go get github.com/gorcon/websocket

See Changelog for release details.

Usage

package main
import (
"log""fmt""github.com/gorcon/websocket"
)
funcmain() {
conn, err:=websocket.Dial("127.0.0.1:28016", "password")
iferr!=nil {
log.Fatal(err)
}
deferconn.Close()
response, err:=conn.Execute("status")
iferr!=nil {
log.Fatal(err)
}
fmt.Println(response) }

Requirements

Go 1.15 or higher

Contribute

Contributions are more than welcome!

If you think that you have found a bug, create an issue and publish the minimum amount of code triggering the bug so it can be reproduced.

If you want to fix the bug then you can create a pull request. If possible, write a test that will cover this bug.

License

MIT License, see LICENSE

About

Rust Web RCON Protocol implementation in Go.

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages