source_server 0.1.5 copy "source_server: ^0.1.5" to clipboard
source_server: ^0.1.5 copied to clipboard

outdated

A library to connect to Source Dedicate Servers like CS:GO, CSS, TF2, ...

SourceSerer #

A library to connect to Source Dedicated Servers [CS:GO, CSS, TF2, ...]

Get started #

Import the library (make sure to check for the latest version).

depedencies:
    source_server: ^0.1.4

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.

Sending commands #

Use

var reply = await server.command('status');

the method command will return a Future string holding the server reply.

TODO #

Check the issues page on github

6
likes
0
pub points
8%
popularity

Publisher

verified publisherhexah.net

A library to connect to Source Dedicate Servers like CS:GO, CSS, TF2, ...

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on source_server