Preparing search index...
The search index is not available
Solana JavaScript SDK
Solana JavaScript SDK
@solana/rpc-subscriptions-spec
RpcSubscriptionsChannel
Interface RpcSubscriptionsChannel<TOutboundMessage, TInboundMessage>
interface
RpcSubscriptionsChannel
<
TOutboundMessage
,
TInboundMessage
>
{
on
<
const
TChannelName
extends
keyof
RpcSubscriptionChannelEvents
<
TInboundMessage
>
,
>
(
channelName
:
TChannelName
,
subscriber
:
(
data
:
RpcSubscriptionChannelEvents
<
TInboundMessage
>
[
TChannelName
]
,
)
=>
void
,
options
?:
{
signal
:
AbortSignal
}
,
)
:
UnsubscribeFn
;
send
(
message
:
TOutboundMessage
)
:
Promise
<
void
>
;
}
Type Parameters
TOutboundMessage
TInboundMessage
Hierarchy (
View Summary
)
DataPublisher
<
RpcSubscriptionChannelEvents
<
TInboundMessage
>
>
RpcSubscriptionsChannel
Index
Methods
on
send
Methods
on
on
<
const
TChannelName
extends
keyof
RpcSubscriptionChannelEvents
<
TInboundMessage
>
,
>
(
channelName
:
TChannelName
,
subscriber
:
(
data
:
RpcSubscriptionChannelEvents
<
TInboundMessage
>
[
TChannelName
]
,
)
=>
void
,
options
?:
{
signal
:
AbortSignal
}
,
)
:
UnsubscribeFn
Type Parameters
const
TChannelName
extends
keyof
RpcSubscriptionChannelEvents
<
TInboundMessage
>
Parameters
channelName
:
TChannelName
subscriber
:
(
data
:
RpcSubscriptionChannelEvents
<
TInboundMessage
>
[
TChannelName
]
)
=>
void
Optional
options
:
{
signal
:
AbortSignal
}
Returns
UnsubscribeFn
send
send
(
message
:
TOutboundMessage
)
:
Promise
<
void
>
Parameters
message
:
TOutboundMessage
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
on
send
Solana JavaScript SDK
Loading...