io.github.pidoveproject.showdown.tyrian

Members list

Type members

Classlikes

Attributes

Source
TyrianConnectionEvent.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class TyrianShowdownClient[F[_]] extends ShowdownClient[String, [e, r] =>> Cmd[F, UnitToNothing[r]], [r] =>> Sub[F, TyrianConnectionEvent[r]], [r] =>> Cmd[F, Either[String, r]]]

Attributes

Source
TyrianShowdownClient.scala
Supertypes
trait ShowdownClient[String, [e, r] =>> Cmd[F, UnitToNothing[r]], [r] =>> Sub[F, TyrianConnectionEvent[r]], [r] =>> Cmd[F, Either[String, r]]]
class Object
trait Matchable
class Any
case class TyrianShowdownConnection[F[_]](socket: WebSocket[F])(implicit evidence$1: Async[F]) extends ShowdownConnection[String, [e, r] =>> Cmd[F, UnitToNothing[r]], [r] =>> Sub[F, TyrianConnectionEvent[r]]]

An open connection to a Pokemon Showdown.

An open connection to a Pokemon Showdown.

Type parameters

F

the effect type of the Tyrian app

Value parameters

socket

the web socket used to communicate with the server

Attributes

Source
TyrianShowdownConnection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ShowdownConnection[String, [e, r] =>> Cmd[F, UnitToNothing[r]], [r] =>> Sub[F, TyrianConnectionEvent[r]]]
class Object
trait Matchable
class Any
Show all

Types

type UnitToNothing[A] = A match { case Unit => Nothing case Any => A }

Convert Unit to Nothing or return the type as is.

Convert Unit to Nothing or return the type as is.

Type parameters

A

the type to convert. Left as is if A is not Unit.

Attributes

Source
UnitToNothing.scala