source_server 3.2.0-dev copy "source_server: ^3.2.0-dev" to clipboard
source_server: ^3.2.0-dev copied to clipboard

outdated

A dart implementation of Source's Query Protocol and RCON from the developer.valvesoftware.com wiki.

example/source_server_example.dart

// ignore_for_file: avoid_print

import 'package:source_server/source_server.dart';

Future<void> main() async {
  final server = await SourceServer.connect('127.0.0.1', 27015);

  final info = await server.getInfo();
  print(info);

/*  final players = await server.getPlayers();
  print(players);

  final rules = await server.getRules();
  print(rules);

  final status = await server.command('status');
  print(status);*/

  server.close();
}
6
likes
0
pub points
12%
popularity

Publisher

verified publisherhexah.net

A dart implementation of Source's Query Protocol and RCON from the developer.valvesoftware.com wiki.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, freezed_annotation, logging

More

Packages that depend on source_server