Search
Preparing search index...
The search index is not available
@dfuse/client
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
DefaultSocket
Class DefaultSocket
Hierarchy
DefaultSocket
Implements
Socket
Index
Constructors
constructor
Properties
disconnect
Initiator
is
Connected
socket
Methods
connect
disconnect
send
set
Api
Token
Constructors
constructor
new
Default
Socket
(
url
:
string
, options
:
SocketOptions
)
:
DefaultSocket
Parameters
url:
string
options:
SocketOptions
Returns
DefaultSocket
Properties
Optional
disconnect
Initiator
disconnect
Initiator
:
"client"
|
"server"
is
Connected
is
Connected
:
boolean
= false
Optional
socket
socket
:
WebSocket
Methods
connect
connect
(
listener
:
SocketMessageListener
, options
?:
SocketConnectOptions
)
:
Promise
<
void
>
Parameters
listener:
SocketMessageListener
Default value
options:
SocketConnectOptions
= {}
Returns
Promise
<
void
>
disconnect
disconnect
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
send
send<T>
(
message
:
T
)
:
Promise
<
void
>
Type parameters
T =
unknown
Parameters
message:
T
Returns
Promise
<
void
>
set
Api
Token
set
Api
Token
(
apiToken
:
string
)
:
void
Parameters
apiToken:
string
Returns
void
Globals
Default
Socket
constructor
disconnect
Initiator
is
Connected
socket
connect
disconnect
send
set
Api
Token
Generated using
TypeDoc