source_server 1.1.0 source_server: ^1.1.0 copied to clipboard
A dart implementation of Source's Query Protocol and RCON from the developer.valvesoftware.com wiki.
import 'dart:io';
import 'package:source_server/source_server.dart';
Future<void> main() async {
var server = SourceServer(InternetAddress('127.0.0.1'), 27015, 'mypassword');
await server.connect();
print(await server.getStatus());
server.close();
}