Preparing search index...
The search index is not available
@deep/nest-kit
@deep/nest-kit
modules/postgres-pubsub
PostgresPubSub
Class PostgresPubSub
Hierarchy
PubSubEngine
PostgresPubSub
Implements
OnModuleInit
Index
Constructors
constructor
Properties
app
Config
client
data
Source
ee
logger
subscriptions
Methods
async
Iterable
Iterator
async
Iterator
is
Entity
Ref
is
Entity
With
Id
minify
on
Module
Init
publish
subscribe
to
Ref
unminify
unref
unsubscribe
Constructors
constructor
new
PostgresPubSub
()
:
PostgresPubSub
Returns
PostgresPubSub
Properties
Protected
Readonly
app
Config
appConfig
:
AppConfigType
Protected
Readonly
client
client
:
Client
Protected
Readonly
data
Source
dataSource
:
DataSource
Protected
ee
ee
:
EventEmitter
<
DefaultEventMap
>
= ...
Protected
logger
logger
:
WinstonLogger
Protected
subscriptions
subscriptions
:
PubSubSubscription
[]
= []
Methods
async
Iterable
Iterator
asyncIterableIterator
<
T
>
(
triggers
:
string
|
readonly
string
[]
,
)
:
PubSubAsyncIterableIterator
<
T
>
Type Parameters
T
Parameters
triggers
:
string
|
readonly
string
[]
Returns
PubSubAsyncIterableIterator
<
T
>
async
Iterator
asyncIterator
<
T
>
(
triggers
:
string
|
readonly
string
[]
,
)
:
AsyncIterator
<
T
,
any
,
any
>
Type Parameters
T
Parameters
triggers
:
string
|
readonly
string
[]
Returns
AsyncIterator
<
T
,
any
,
any
>
Protected
is
Entity
Ref
isEntityRef
(
value
:
unknown
)
:
value
is
EntityRef
Parameters
value
:
unknown
Returns
value
is
EntityRef
Protected
is
Entity
With
Id
isEntityWithId
(
value
:
unknown
)
:
value
is
EntityWithId
Parameters
value
:
unknown
Returns
value
is
EntityWithId
Protected
minify
minify
(
payload
:
any
)
:
any
Parameters
payload
:
any
Returns
any
on
Module
Init
onModuleInit
()
:
void
Returns
void
publish
publish
(
triggerName
:
string
,
payload
:
any
)
:
Promise
<
void
>
Parameters
triggerName
:
string
payload
:
any
Returns
Promise
<
void
>
subscribe
subscribe
(
triggerName
:
string
,
callback
:
PubSubSubscriptionCallback
,
)
:
Promise
<
number
>
Parameters
triggerName
:
string
callback
:
PubSubSubscriptionCallback
Returns
Promise
<
number
>
Protected
to
Ref
toRef
(
object
:
object
)
:
MaybeNull
<
EntityRef
>
Parameters
object
:
object
Returns
MaybeNull
<
EntityRef
>
Protected
unminify
unminify
(
payload
:
any
)
:
Promise
<
any
>
Parameters
payload
:
any
Returns
Promise
<
any
>
Protected
unref
unref
(
entityRef
:
EntityRef
)
:
Promise
<
BaseEntity
|
ObjectWithId
>
Parameters
entityRef
:
EntityRef
Returns
Promise
<
BaseEntity
|
ObjectWithId
>
unsubscribe
unsubscribe
(
subId
:
number
)
:
Promise
<
void
>
Parameters
subId
:
number
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
app
Config
client
data
Source
ee
logger
subscriptions
Methods
async
Iterable
Iterator
async
Iterator
is
Entity
Ref
is
Entity
With
Id
minify
on
Module
Init
publish
subscribe
to
Ref
unminify
unref
unsubscribe
@deep/nest-kit
Loading...