Preparing search index...
The search index is not available
@formant/data-sdk
@formant/data-sdk
RtcSignalingClient
Class RtcSignalingClient
Hierarchy
FormantBaseClient
RtcSignalingClient
Index
Constructors
constructor
Properties
endpoint
headers
on
Response
Error
retries
wait
For
Connectivity
Methods
add
Signals
create
Peer
create
Session
delete
Session
fetch
fetch
Verbose
get
Headers
get
Ice
Servers
get
Peers
get
Retries
get
Sessions
refresh
Peer
refresh
Session
take
Signals
Constructors
constructor
new
Rtc
Signaling
Client
(
endpoint
,
options
?
)
:
RtcSignalingClient
Parameters
endpoint
:
string
Optional
options
:
{
timeoutMs
?:
number
;
}
Optional
timeout
Ms
?:
number
Returns
RtcSignalingClient
Properties
Protected
endpoint
endpoint
:
string
Static
headers
headers
:
{
[
_
:
string
]
:
string
;
}
Type declaration
[
_
:
string
]:
string
Static
on
Response
Error
on
Response
Error
:
(
(
error
)
=>
Promise
<
void
>
)
Type declaration
(
error
)
:
Promise
<
void
>
Parameters
error
:
ResponseError
Returns
Promise
<
void
>
Static
retries
retries
:
number
Static
wait
For
Connectivity
wait
For
Connectivity
:
(
(
)
=>
Promise
<
void
>
)
Type declaration
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Methods
add
Signals
add
Signals
(
token
,
sessionId
,
request
)
:
Promise
<
void
>
Parameters
token
:
string
sessionId
:
string
request
:
IRtcAddSignalsRequest
Returns
Promise
<
void
>
create
Peer
create
Peer
(
token
,
request
)
:
Promise
<
IRtcPeer
>
Parameters
token
:
string
request
:
IRtcCreatePeerRequest
Returns
Promise
<
IRtcPeer
>
create
Session
create
Session
(
token
,
request
)
:
Promise
<
IRtcSession
>
Parameters
token
:
string
request
:
IRtcCreateSessionRequest
Returns
Promise
<
IRtcSession
>
delete
Session
delete
Session
(
token
,
id
)
:
Promise
<
void
>
Parameters
token
:
string
id
:
string
Returns
Promise
<
void
>
Protected
fetch
fetch
<
T
>
(
path
,
extendedInit
?
)
:
Promise
<
T
>
Type Parameters
T
Parameters
path
:
string
Optional
extendedInit
:
IRequestInit
Returns
Promise
<
T
>
Protected
fetch
Verbose
fetch
Verbose
<
T
>
(
path
,
extendedInit
?
)
:
Promise
<
IResponse
<
T
>
>
Type Parameters
T
Parameters
path
:
string
Optional
extendedInit
:
IRequestInit
Returns
Promise
<
IResponse
<
T
>
>
Protected
get
Headers
get
Headers
(
)
:
{
[
_
:
string
]
:
string
;
}
Returns
{
[
_
:
string
]
:
string
;
}
[
_
:
string
]:
string
get
Ice
Servers
get
Ice
Servers
(
token
)
:
Promise
<
RTCIceServer
[]
>
Parameters
token
:
string
Returns
Promise
<
RTCIceServer
[]
>
get
Peers
get
Peers
(
token
)
:
Promise
<
IRtcPeer
[]
>
Parameters
token
:
string
Returns
Promise
<
IRtcPeer
[]
>
Protected
get
Retries
get
Retries
(
)
:
number
Returns
number
get
Sessions
get
Sessions
(
token
)
:
Promise
<
IRtcSession
[]
>
Parameters
token
:
string
Returns
Promise
<
IRtcSession
[]
>
refresh
Peer
refresh
Peer
(
token
,
id
)
:
Promise
<
void
>
Parameters
token
:
string
id
:
string
Returns
Promise
<
void
>
refresh
Session
refresh
Session
(
token
,
id
)
:
Promise
<
void
>
Parameters
token
:
string
id
:
string
Returns
Promise
<
void
>
take
Signals
take
Signals
(
token
,
sessionId
)
:
Promise
<
IRtcSignal
[]
>
Parameters
token
:
string
sessionId
:
string
Returns
Promise
<
IRtcSignal
[]
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
endpoint
headers
on
Response
Error
retries
wait
For
Connectivity
add
Signals
create
Peer
create
Session
delete
Session
fetch
fetch
Verbose
get
Headers
get
Ice
Servers
get
Peers
get
Retries
get
Sessions
refresh
Peer
refresh
Session
take
Signals
@formant/data-sdk
Loading...
Generated using
TypeDoc