SyncShowdownClient

io.github.pidoveproject.showdown.client.sync.SyncShowdownClient
See theSyncShowdownClient companion object
class SyncShowdownClient(runtime: Runtime[ZIOShowdownClient]) extends ShowdownClient[String, [e, r] =>> r, [r] =>> (PartialFunction[r, Boolean]) => Unit, Function1]

Attributes

Companion
object
Source
SyncShowdownClient.scala
Graph
Supertypes
trait ShowdownClient[String, [e, r] =>> r, [r] =>> (PartialFunction[r, Boolean]) => Unit, Function1]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def login(challStr: ChallStr)(name: Username, password: String): LoginResponse

Login to a registered account.

Login to a registered account.

Value parameters

challStr

the token used for authentication

name

the name of the account

password

the password of the account

Attributes

Returns

the authentication response sent by the server

Definition Classes
Source
SyncShowdownClient.scala
override def loginGuest(challStr: ChallStr)(name: Username): Assertion

Login as guest.

Login as guest.

Value parameters

challStr

the token used for authentication

name

the name to take in game

Attributes

Returns

the guest's name if the authentication succeeds

Definition Classes
Source
SyncShowdownClient.scala
override def openConnection(serverUrl: URL): (SyncShowdownConnection => Unit) => Unit

Open a connection to the pokemon showdown server.

Open a connection to the pokemon showdown server.

Attributes

Definition Classes
Source
SyncShowdownClient.scala