IOServerClient class Null safety

The socket IO implementation of ServerClient

Inheritance

Constructors

IOServerClient({required GameAddress address, required ProviderRef<ServerClient> ref})

Properties

address GameAddress
final
hashCode int
The hash code for this object. [...]
read-only, inherited
logger Logger
final, inherited
ref ProviderRef<ServerClient>
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
socket Socket
late, final

Methods

connect() Future<void>
Connects to the backend
override
createGame(PlayerID playerID, GameConfig config) Future<GameCode>
Creates a game on the server
override
deleteGame(PlayerID playerID, GameCode gameCode) Future<bool>
Deletes the game on the server
override
disconnect() Future<void>
Disconnect from the backend [...]
override
dispose() → void
Disposes of the ServerClient (i.e. disconnects from the server)
override
getGames(PlayerID playerID) Future<IList<GameInfo>>
Gets a list of games on the server
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited