A library to connect to Source Dedicated Servers
CS:GO, CSS, TF2, ...
Import the library (make sure to check for the latest version).
depedencies: source_server: ^0.0.3
Then Construct our class.
var server = new SourceServer('foo', ip: 'localhost', port: 27015);
The only required parameter is the first, password, the ip and port by default are: localhost:27015
Now we can estabilish a connection to server:
var server; server.connect();
Here you can optionally provive an onDone callback to know when the connection closes.
var reply = await server.command('status');
command will return a
Future string holding the server reply.
- If packet is split in multiple requests return it properly.
- Allow to get more info about the server and connected players.
- Add a