ZIOShowdownClient

io.github.pidoveproject.showdown.client.zio.ZIOShowdownClient
See theZIOShowdownClient companion object
class ZIOShowdownClient(client: Client) extends ShowdownClient[WebSocketFrame, IO, [r] =>> Stream[Throwable, r], [x] =>> ZIO[Scope, ProtocolError, x]]

Attributes

Companion
object
Source
ZIOShowdownClient.scala
Graph
Supertypes
trait ShowdownClient[WebSocketFrame, IO, [r] =>> Stream[Throwable, r], [x] =>> ZIO[Scope, ProtocolError, x]]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def login(challStr: ChallStr)(name: Username, password: String): IO[ProtocolError, 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
ZIOShowdownClient.scala
override def loginGuest(challStr: ChallStr)(name: Username): IO[ProtocolError, 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
ZIOShowdownClient.scala
override def openConnection(serverUrl: URL): ZIO[Scope, ProtocolError, ZIOShowdownConnection]

Open a connection to the pokemon showdown server.

Open a connection to the pokemon showdown server.

Attributes

Definition Classes
Source
ZIOShowdownClient.scala