A11 TypeScript API - v0.2.1
A11 guides
Python API
C++ internals
Preparing search index...
WebSocketFactory
Type Alias WebSocketFactory
WebSocketFactory
:
(
url
:
string
,
protocols
:
string
|
readonly
string
[]
|
undefined
,
headers
:
Readonly
<
Record
<
string
,
string
>
>
,
)
=>
WebSocketLike
|
Promise
<
WebSocketLike
>
Factory used to construct browser-like sockets in different runtimes.
Type Declaration
(
url
:
string
,
protocols
:
string
|
readonly
string
[]
|
undefined
,
headers
:
Readonly
<
Record
<
string
,
string
>
>
,
)
:
WebSocketLike
|
Promise
<
WebSocketLike
>
Parameters
url
:
string
protocols
:
string
|
readonly
string
[]
|
undefined
headers
:
Readonly
<
Record
<
string
,
string
>
>
Returns
WebSocketLike
|
Promise
<
WebSocketLike
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
A11 guides
Python API
C++ internals
A11 TypeScript API - v0.2.1
Loading...
Factory used to construct browser-like sockets in different runtimes.