TyrianShowdownConnection
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
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ShowdownConnection[String, [e, r] =>> Cmd[F, UnitToNothing[r]], [r] =>> Sub[F, TyrianConnectionEvent[r]]]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Disconnect from the server.
Send client-bound message to the server.
Send client-bound message to the server.
Value parameters
- message
-
the message to send
- room
-
the room to send the message to
Attributes
- Definition Classes
- Source
- TyrianShowdownConnection.scala
Send client-bound message to the server.
Send client-bound message to the server.
Value parameters
- message
-
the message to send
Attributes
- Definition Classes
- Source
- TyrianShowdownConnection.scala
Send a socket frame to the server.
Send a socket frame to the server.
Value parameters
- message
-
the socket message to send
Attributes
- Definition Classes
- Source
- TyrianShowdownConnection.scala
Inherited methods
Accept a challenge
Cancel the match search.
Cancel the match search.
Attributes
- Inherited from:
- ShowdownConnection
- Source
- ShowdownConnection.scala
Challenge another user
Challenge another user
Value parameters
- format
-
the format of the battle
- user
-
the user to challenge
Attributes
- Inherited from:
- ShowdownConnection
- Source
- ShowdownConnection.scala
Confirm login process by sending the assertion received from ShowdownClient#login or ShowdownClient#loginGuest.
Confirm login process by sending the assertion received from ShowdownClient#login or ShowdownClient#loginGuest.
Value parameters
- assertion
-
the assertion got from the authentication process
- name
-
the username to take
Attributes
- Inherited from:
- ShowdownConnection
- Source
- ShowdownConnection.scala
Join a room.
Join a room.
Value parameters
- room
-
the id of the room to join
Attributes
- Inherited from:
- ShowdownConnection
- Source
- ShowdownConnection.scala
Leave a room
Leave a room
Value parameters
- room
-
the id of the room to leave
Attributes
- Inherited from:
- ShowdownConnection
- Source
- ShowdownConnection.scala
Disconnect the user
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Rename current user.
Rename current user.
Value parameters
- name
-
the new name to take
Attributes
- Inherited from:
- ShowdownConnection
- Source
- ShowdownConnection.scala
Reset current user's name.
Reset current user's name.
Attributes
- Inherited from:
- ShowdownConnection
- Source
- ShowdownConnection.scala
Search for a battle
Search for a battle
Value parameters
- format
-
the format to search for
Attributes
- Inherited from:
- ShowdownConnection
- Source
- ShowdownConnection.scala
Send a private message to another player.
Send a private message to another player.
Value parameters
- message
-
the message to send
- recipient
-
the recipient of the message
Attributes
- Inherited from:
- ShowdownConnection
- Source
- ShowdownConnection.scala
Concrete fields
The stream of the received server messages