Client
Implements
Constructors
new Client()
new Client(
options,debug?):Client
Parameters
| Parameter | Type |
|---|---|
options | ClientOptions |
debug? | DebugFunction |
Returns
Defined in
Properties
rest
readonlyrest:REST
Defined in
cache
readonlycache:CacheManagerStructure
Implementation of
Defined in
ws
readonlyws:WebSocketManager
Defined in
user
readonlyuser:Structure
By default this is a UserStructure, but can change according to your transformers
Implementation of
Defined in
sessionId
readonlysessionId:string
Implementation of
Defined in
application
readonlyapplication:Structure
Implementation of
Defined in
Methods
login()
login(
token,dispatch):Promise<string>
Parameters
| Parameter | Type |
|---|---|
token | string |
dispatch | undefined | DispatchFunction |
Returns
Promise<string>
Defined in
close()
close():
void
Returns
void
Defined in
ping()
ping():
Promise<object>
Both numbers are represented in ms.
This function requires Bun to work.
Returns
Promise<object>
ws
ws:
number
rest
rest:
number