discord-mcbe
Preparing search index...
@discord-mcbe/server
ISession
Interface ISession
interface
ISession
{
averagePing
:
number
;
clientId
:
string
;
id
:
string
;
destroy
()
:
void
;
disconnect
(
reason
?:
DisconnectReason
)
:
Promise
<
void
>
;
send
<
A
extends
BaseAction
<
string
,
unknown
,
unknown
>
=
BaseAction
<
string
,
unknown
,
unknown
,
>
,
>
(
channelId
:
A
[
"id"
]
,
data
?:
A
[
"request"
]
,
timeout
?:
number
,
)
:
Promise
<
IClientResponse
<
A
[
"response"
]
>
>
;
}
Implemented by
SocketSession
Index
Properties
average
Ping
client
Id
id
Methods
destroy
disconnect
send
Properties
average
Ping
averagePing
:
number
client
Id
clientId
:
string
Readonly
id
id
:
string
Methods
destroy
destroy
()
:
void
Returns
void
disconnect
disconnect
(
reason
?:
DisconnectReason
)
:
Promise
<
void
>
Parameters
Optional
reason
:
DisconnectReason
Returns
Promise
<
void
>
send
send
<
A
extends
BaseAction
<
string
,
unknown
,
unknown
>
=
BaseAction
<
string
,
unknown
,
unknown
,
>
,
>
(
channelId
:
A
[
"id"
]
,
data
?:
A
[
"request"
]
,
timeout
?:
number
,
)
:
Promise
<
IClientResponse
<
A
[
"response"
]
>
>
Type Parameters
A
extends
BaseAction
<
string
,
unknown
,
unknown
>
=
BaseAction
<
string
,
unknown
,
unknown
>
Parameters
channelId
:
A
[
"id"
]
Optional
data
:
A
[
"request"
]
Optional
timeout
:
number
Returns
Promise
<
IClientResponse
<
A
[
"response"
]
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
average
Ping
client
Id
id
Methods
destroy
disconnect
send
discord-mcbe
Loading...