discord-mcbe
Preparing search index...
@discord-mcbe/server
SocketSession
Class SocketSession
Implements
ISession
Index
Constructors
constructor
Properties
id
world
world
Name
Accessors
average
Ping
request
Info
Methods
destroy
disconnect
reconnect
send
Constructors
constructor
new
SocketSession
(
app
:
Application
,
server
:
WebSocketBridgeServer
,
world
:
World
,
id
:
string
,
worldName
:
string
,
)
:
SocketSession
Parameters
app
:
Application
server
:
WebSocketBridgeServer
world
:
World
id
:
string
worldName
:
string
Returns
SocketSession
Properties
Readonly
id
id
:
string
Readonly
world
world
:
World
Readonly
world
Name
worldName
:
string
Accessors
average
Ping
get
averagePing
()
:
number
Returns
number
request
Info
get
requestInfo
()
:
ConnectionInfo
Returns
ConnectionInfo
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
<
T
extends
|
Disconnect
|
Ping
|
SendMessage
|
RunCommand
|
SendScriptEvent
|
GetTPS
|
GetEntityLocation
|
GetEntityDimension
|
GetGameMode
|
SetGameMode
|
SetTitle
|
UpdateSubtitle
|
SetActionBar
|
KickPlayer
|
DiscordChat
|
GetScore
|
UpdateScore
|
GetAllScores
|
RemoveParticipant
|
GetObjective
|
GetAllObjectives
|
UpdateObjective
|
SetObjectiveDisplay
,
>
(
type
:
T
,
data
:
ClientBoundRequestData
<
T
>
,
timeout
?:
number
,
)
:
Promise
<
RequestResult
<
ClientBoundResponseData
<
T
>
>
>
Type Parameters
T
extends
|
Disconnect
|
Ping
|
SendMessage
|
RunCommand
|
SendScriptEvent
|
GetTPS
|
GetEntityLocation
|
GetEntityDimension
|
GetGameMode
|
SetGameMode
|
SetTitle
|
UpdateSubtitle
|
SetActionBar
|
KickPlayer
|
DiscordChat
|
GetScore
|
UpdateScore
|
GetAllScores
|
RemoveParticipant
|
GetObjective
|
GetAllObjectives
|
UpdateObjective
|
SetObjectiveDisplay
Parameters
type
:
T
data
:
ClientBoundRequestData
<
T
>
timeout
:
number
= 10_000
Returns
Promise
<
RequestResult
<
ClientBoundResponseData
<
T
>
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
id
world
world
Name
Accessors
average
Ping
request
Info
Methods
destroy
disconnect
reconnect
send
discord-mcbe
Loading...