IOServerClient class
The socket IO implementation of ServerClient
- Inheritance
-
- Object
- ServerClient
- IOServerClient
Constructors
-
IOServerClient({required GameAddress address, required ProviderRef<
ServerClient> ref})
Properties
- address → GameAddress
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger
-
finalinherited
-
ref
→ ProviderRef<
ServerClient> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket → Socket
-
latefinal
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 nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited