Search
Preparing search index...
The search index is not available
multistream-select - v3.0.2
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
multistream-select - v3.0.2
Listener
Class Listener
Hierarchy
MultistreamSelect
Listener
Index
Constructors
constructor
Properties
_shaken
_stream
Methods
_handshake
handle
Constructors
constructor
new
Listener
(
stream
:
DuplexStream
<
Uint8Array
|
BufferList
>
)
:
Listener
Parameters
stream:
DuplexStream
<
Uint8Array
|
BufferList
>
Returns
Listener
Properties
_shaken
_shaken
:
boolean
_stream
_stream
:
DuplexStream
<
Uint8Array
|
BufferList
>
Methods
_handshake
_handshake
(
options
:
undefined
|
AbortOptions
)
:
Promise
<
void
>
Perform the multistream-select handshake
Parameters
options:
undefined
|
AbortOptions
Returns
Promise
<
void
>
handle
handle
(
protocols
:
string
|
string
[]
, options
:
undefined
|
AbortOptions
)
:
Promise
<
{
protocol
:
string
;
stream
:
any
}
>
Parameters
protocols:
string
|
string
[]
options:
undefined
|
AbortOptions
Returns
Promise
<
{
protocol
:
string
;
stream
:
any
}
>
Exports
Dialer
Listener
constructor
_shaken
_stream
_handshake
handle
Abort
Options
Buffer
List
Duplex
Stream
PROTOCOL_
ID