glame 🎮
A client implementation of the Source RCON Protocol, inpsired by gorcon.
Adding to your project
gleam add glame
Usage
import gleam/io
import gleam/option.{None}
import gleam/string
import glame
pub fn main() {
case glame.dial("127.0.0.1", 25_575, "password", None, None) {
Ok(conn) -> {
case glame.execute(conn, "ShowPlayers") {
Ok(res) -> io.println(res)
Error(e) -> io.println(string.inspect(e))
}
}
Error(e) -> io.println(string.inspect(e))
}
}