Prelude API
Guides
Skill
GitHub
Preparing search index...
@prelude/jsonrpc
Client
Class Client
Index
Constructors
constructor
Properties
transport
Accessors
pending
Count
Methods
call
close
dispose
notify
receive
Constructors
constructor
new
Client
(
transport
:
EventTransport
,
options
?:
ClientOptions
)
:
Client
Parameters
transport
:
EventTransport
options
:
ClientOptions
= {}
Returns
Client
Properties
Readonly
transport
transport
:
EventTransport
Accessors
pending
Count
get
pendingCount
()
:
number
Returns
number
Methods
call
call
<
R
=
unknown
>
(
method
:
string
,
params
?:
Params
,
options
?:
CallOptions
,
)
:
Promise
<
R
>
Type Parameters
R
=
unknown
Parameters
method
:
string
Optional
params
:
Params
options
:
CallOptions
= {}
Returns
Promise
<
R
>
close
close
(
reason
?:
unknown
)
:
void
Parameters
reason
:
unknown
= ...
Returns
void
dispose
dispose
(
reason
?:
unknown
)
:
void
Parameters
reason
:
unknown
= ...
Returns
void
notify
notify
(
method
:
string
,
params
?:
Params
)
:
Promise
<
void
>
Parameters
method
:
string
Optional
params
:
Params
Returns
Promise
<
void
>
receive
receive
(
payload
:
unknown
)
:
Promise
<
void
>
Parameters
payload
:
unknown
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
transport
Accessors
pending
Count
Methods
call
close
dispose
notify
receive
Guides
Skill
GitHub
Prelude API
Loading...