ShowdownConnection
A connection established with a Pokemon Showdown server.
Type parameters
- Frame
-
the type of web socket frame
- Stream
-
the type of a stream
- Task
-
the type of a task
Attributes
- Source
- ShowdownConnection.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
Value members
Abstract 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
- Source
- ShowdownConnection.scala
Send client-bound message to the server.
Send client-bound message to the server.
Value parameters
- message
-
the message to send
Attributes
- Source
- ShowdownConnection.scala
Send a socket frame to the server.
Send a socket frame to the server.
Value parameters
- message
-
the socket message to send
Attributes
- Source
- ShowdownConnection.scala
The stream of the received server messages
Concrete methods
Accept a challenge
Cancel the match search.
Challenge another user
Challenge another user
Value parameters
- format
-
the format of the battle
- user
-
the user to challenge
Attributes
- 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
- Source
- ShowdownConnection.scala
Join a room.
Join a room.
Value parameters
- room
-
the id of the room to join
Attributes
- Source
- ShowdownConnection.scala
Leave a room
Leave a room
Value parameters
- room
-
the id of the room to leave
Attributes
- Source
- ShowdownConnection.scala
Disconnect the user
Rename current user.
Rename current user.
Value parameters
- name
-
the new name to take
Attributes
- Source
- ShowdownConnection.scala
Reset current user's name.
Search for a battle
Search for a battle
Value parameters
- format
-
the format to search for
Attributes
- 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
- Source
- ShowdownConnection.scala