Search
Preparing search index...
The search index is not available
@bhtbot/bhtbot
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
WebSocketConnector
Class WebSocketConnector
Hierarchy
WebSocketConnector
Index
Constructors
constructor
Properties
closing
connection
Timeout
name
ws
Methods
close
connect
is
Closed
on
Error
on
File
on
Message
on
Message
Received
register
send
try
Reconnect
Object literals
handlers
Constructors
constructor
new
Web
Socket
Connector
(
name
:
string
)
:
WebSocketConnector
Parameters
name:
string
Returns
WebSocketConnector
Properties
Private
closing
closing
:
boolean
= false
Private
connection
Timeout
connection
Timeout
:
Timeout
Private
Readonly
name
name
:
string
Private
ws
ws
:
WebSocket
Methods
close
close
(
)
:
void
Returns
void
connect
connect
(
url
:
string
)
:
Promise
<
unknown
>
Parameters
url:
string
Returns
Promise
<
unknown
>
is
Closed
is
Closed
(
)
:
boolean
Returns
boolean
on
Error
on
Error
(
func
:
(
errorMessage
:
ErrorMessage
)
=>
void
)
:
this
Parameters
func:
(
errorMessage
:
ErrorMessage
)
=>
void
(
errorMessage
:
ErrorMessage
)
:
void
Parameters
errorMessage:
ErrorMessage
Returns
void
Returns
this
on
File
on
File
(
func
:
(
message
:
FileMessage
)
=>
void
)
:
this
Parameters
func:
(
message
:
FileMessage
)
=>
void
(
message
:
FileMessage
)
:
void
Parameters
message:
FileMessage
Returns
void
Returns
this
on
Message
on
Message
(
func
:
(
message
:
ServiceMessage
)
=>
void
)
:
this
Parameters
func:
(
message
:
ServiceMessage
)
=>
void
(
message
:
ServiceMessage
)
:
void
Parameters
message:
ServiceMessage
Returns
void
Returns
this
Private
on
Message
Received
on
Message
Received
(
data
:
any
)
:
void
Parameters
data:
any
Returns
void
Private
register
register
(
)
:
void
Returns
void
Private
send
send
(
type
:
"reg_client"
|
"client_message"
, params
:
any
)
:
void
Parameters
type:
"reg_client"
|
"client_message"
params:
any
Returns
void
Private
try
Reconnect
try
Reconnect
(
url
:
any
)
:
void
Parameters
url:
any
Returns
void
Object literals
Private
handlers
handlers
:
object
error
error
:
null
= null
file
file
:
null
= null
message
message
:
null
= null
Globals
Bot
Intent
Bot
Request
Bot
Request
Payload
Bot
Response
Bot
User
Error
Message
File
Message
Gateway
Register
Client
Service
Message
Web
Socket
Connector
constructor
closing
connection
Timeout
name
ws
close
connect
is
Closed
on
Error
on
File
on
Message
on
Message
Received
register
send
try
Reconnect
handlers
Register
Client
AtService
Service
Message
ToClient
Generated using
TypeDoc