discord-mcbe
Preparing search index...
@discord-mcbe/server
SocketSession
Class SocketSession
Implements
ISession
Index
Constructors
constructor
Properties
_
awaiting
Responses
client
Id
id
world
Accessors
average
Ping
Methods
destroy
disconnect
reconnect
send
Constructors
constructor
new
SocketSession
(
app
:
Application
,
server
:
SocketBridgeServer
,
world
:
World
,
id
:
string
,
clientId
:
string
,
)
:
SocketSession
Parameters
app
:
Application
server
:
SocketBridgeServer
world
:
World
id
:
string
clientId
:
string
Returns
SocketSession
Properties
Readonly
_
awaiting
Responses
_awaitingResponses
:
Map
<
number
,
(
response
:
ClientResponse
)
=>
void
>
= ...
Readonly
client
Id
clientId
:
string
Readonly
id
id
:
string
session id
Readonly
world
world
:
World
Accessors
average
Ping
get
averagePing
()
:
number
Returns
number
Methods
destroy
destroy
()
:
void
Returns
void
disconnect
disconnect
(
reason
?:
DisconnectReason
)
:
Promise
<
void
>
Parameters
reason
:
DisconnectReason
= DisconnectReason.Disconnect
Returns
Promise
<
void
>
reconnect
reconnect
()
:
Promise
<
void
>
Returns
Promise
<
void
>
send
send
<
A
extends
BaseAction
<
string
,
unknown
,
unknown
>
=
BaseAction
<
string
,
unknown
,
unknown
,
>
,
>
(
channelId
:
A
[
"id"
]
,
data
?:
A
[
"request"
]
,
timeout
?:
number
,
)
:
Promise
<
ClientResponse
<
A
[
"response"
]
>
>
Type Parameters
A
extends
BaseAction
<
string
,
unknown
,
unknown
>
=
BaseAction
<
string
,
unknown
,
unknown
>
Parameters
channelId
:
A
[
"id"
]
Optional
data
:
A
[
"request"
]
timeout
:
number
= 10_000
Returns
Promise
<
ClientResponse
<
A
[
"response"
]
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
awaiting
Responses
client
Id
id
world
Accessors
average
Ping
Methods
destroy
disconnect
reconnect
send
discord-mcbe
Loading...
session id