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
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SyncShowdownConnectionclass ZIOShowdownConnection
Members list
Value members
Abstract methods
Disconnect from the server.
Disconnect from the server.
Attributes
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
Send client-bound message to the server.
Send client-bound message to the server.
Value parameters
- message
-
the message to send
Attributes
Send a socket frame to the server.
Send a socket frame to the server.
Value parameters
- message
-
the socket message to send
Attributes
The stream of the received server messages
The stream of the received server messages
Attributes
Concrete methods
Accept a challenge
Accept a challenge
Attributes
Cancel the match search.
Cancel the match search.
Attributes
Challenge another user
Challenge another user
Value parameters
- format
-
the format of the battle
- user
-
the user to challenge
Attributes
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
Join a room.
Join a room.
Value parameters
- room
-
the id of the room to join
Attributes
Leave a room
Leave a room
Value parameters
- room
-
the id of the room to leave
Attributes
Disconnect the user
Disconnect the user
Attributes
Rename current user.
Rename current user.
Value parameters
- name
-
the new name to take
Attributes
Reset current user's name.
Reset current user's name.
Attributes
Search for a battle
Search for a battle
Value parameters
- format
-
the format to search for
Attributes
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