Preparing search index...
The search index is not available
@deltachat/jsonrpc-client
@deltachat/jsonrpc-client
yerpc
BaseTransport
Class BaseTransport<T>
Abstract
Type Parameters
T =
{}
Hierarchy
Emitter
<
ClientEvents
<
T
>
>
BaseTransport
WebsocketTransport
StdioTransport
Implements
Transport
Index
Constructors
constructor
Properties
_request
Id
_requests
e
Methods
_onmessage
_send
close
emit
notification
off
on
once
request
Constructors
constructor
new
Base
Transport
<
T
>
(
)
:
BaseTransport
<
T
>
Type Parameters
T =
{}
Returns
BaseTransport
<
T
>
Properties
Private
_request
Id
_request
Id
:
any
Private
_requests
_requests
:
any
e
e
:
Map
<
"request"
|
keyof
T
,
EventData
[]
>
Methods
Protected
_onmessage
_onmessage
(
message
:
yerpc
.
Message
)
:
void
Parameters
message:
yerpc
.
Message
Returns
void
_send
_send
(
_message
:
yerpc
.
Message
)
:
void
Parameters
_message:
yerpc
.
Message
Returns
void
close
close
(
)
:
void
Returns
void
emit
emit
<
E
>
(
event
:
string
|
E
,
...
args
:
any
[]
|
Arguments
<
ClientEvents
<
T
>
[
E
]
>
)
:
undefined
|
BaseTransport
<
T
>
Type Parameters
E
extends
string
|
number
|
symbol
Parameters
event:
string
|
E
Rest
...
args:
any
[]
|
Arguments
<
ClientEvents
<
T
>
[
E
]
>
Returns
undefined
|
BaseTransport
<
T
>
notification
notification
(
method
:
string
, params
?:
yerpc
.
Params
)
:
void
Parameters
method:
string
Optional
params:
yerpc
.
Params
Returns
void
off
off
<
E
>
(
event
:
E
, callback
?:
ClientEvents
<
T
>
[
E
]
)
:
undefined
|
BaseTransport
<
T
>
Type Parameters
E
extends
string
|
number
|
symbol
Parameters
event:
E
Optional
callback:
ClientEvents
<
T
>
[
E
]
Returns
undefined
|
BaseTransport
<
T
>
on
on
<
E
>
(
event
:
E
, callback
:
ClientEvents
<
T
>
[
E
]
, ctx
?:
any
)
:
BaseTransport
<
T
>
Type Parameters
E
extends
string
|
number
|
symbol
Parameters
event:
E
callback:
ClientEvents
<
T
>
[
E
]
Optional
ctx:
any
Returns
BaseTransport
<
T
>
once
once
<
E
>
(
event
:
E
, callback
:
ClientEvents
<
T
>
[
E
]
, ctx
?:
any
)
:
void
Type Parameters
E
extends
string
|
number
|
symbol
Parameters
event:
E
callback:
ClientEvents
<
T
>
[
E
]
Optional
ctx:
any
Returns
void
request
request
(
method
:
string
, params
?:
yerpc
.
Params
)
:
Promise
<
unknown
>
Parameters
method:
string
Optional
params:
yerpc
.
Params
Returns
Promise
<
unknown
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@deltachat/jsonrpc-
client
RPC
T
yerpc
Base
Transport
constructor
_request
Id
_requests
e
_onmessage
_send
close
emit
notification
off
on
once
request
Generated using
TypeDoc