index
Classes
abstract
SubscriptionDatabase
Constructors
new SubscriptionDatabase()
new SubscriptionDatabase():
SubscriptionDatabase
Returns
Methods
createSubscription()
createSubscription(
info
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
Returns
Promise
<void
>
deleteSubscription()
deleteSubscription(
id
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<void
>
deleteSubscriptions()
deleteSubscriptions(
connectionId
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<void
>
getSubscriptions()
getSubscriptions(
topic
):Promise
<SubscriptionInfo
[]>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<SubscriptionInfo
[]>
SubscriptionDatabaseD1
Implements
Constructors
new SubscriptionDatabaseD1()
new SubscriptionDatabaseD1(
db
):SubscriptionDatabaseD1
Parameters
Parameter | Type |
---|---|
|
|
Returns
Properties
Property | Modifier | Type | Default value |
---|---|---|---|
|
|
|
|
Methods
createSubscription()
createSubscription(
info
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
Returns
Promise
<void
>
Implementation of
SubscriptionDatabase
.createSubscription
deleteSubscription()
deleteSubscription(
id
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<void
>
Implementation of
SubscriptionDatabase
.deleteSubscription
deleteSubscriptions()
deleteSubscriptions(
connectionId
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<void
>
Implementation of
SubscriptionDatabase
.deleteSubscriptions
getSubscriptions()
getSubscriptions(
topic
):Promise
<SubscriptionInfo
[]>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<SubscriptionInfo
[]>
Implementation of
SubscriptionDatabase
.getSubscriptions
Interfaces
SubscriptionInfo
Properties
Property | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
SubscriptionsContextLoader<Env, Context, ContextParams>
Type Parameters
Type Parameter |
---|
|
|
|
Properties
Property | Type |
---|---|
|
( |
|
( |
SubscriptionsOptions<Env, Context, ContextParams>
Type Parameters
Type Parameter |
---|
|
|
|
Properties
Property | Type |
---|---|
|
( |
|
( |
|
|
|
|
|
Type Aliases
PoolingType
PoolingType:
"global"
|"colo"
|"continent"
|"none"
Publish()<Map>
Publish<
Map
>: <C
,P
>(topic
,payload
) =>Promise
<void
>
Type Parameters
Type Parameter |
---|
|
Type Parameters
Type Parameter |
---|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|