@cuser/publisher
TypeScript icon, indicating that this package has built-in type declarations

0.0.36 • Public • Published

cuser logo

@cuser/publisher

Status

codecov npm npm-downloads

Class: CuserPublisher

Hierarchy

  • CuserPublisher

Index

Constructors

Methods

Constructors

constructor

+ new CuserPublisher(core: CuserCore, auth: CuserAuth, opts: CuserPublisherOptions & CuserStoreSerializeReducerOptions & CuserSerializeOptions & CuserDeserializeOptions): CuserPublisher

Defined in publisher/publisher.js:33

Parameters:

Name Type
core CuserCore
auth CuserAuth
opts CuserPublisherOptions & CuserStoreSerializeReducerOptions & CuserSerializeOptions & CuserDeserializeOptions

Returns: CuserPublisher

Methods

deleteMessage

deleteMessage(topicId: string, accessToken: string, messageId: string): Promise<PublishResult>

Defined in publisher/publisher.js:100

Delete message and gets the computed cid

Parameters:

Name Type Description
topicId string
accessToken string
messageId string

Returns: Promise<PublishResult>


publishMessage

publishMessage(topicId: string, accessToken: string, data: string): Promise<PublishResult>

Defined in publisher/publisher.js:71

Publish message and gets the computed cid

Parameters:

Name Type Description
topicId string
accessToken string
data string

Returns: Promise<PublishResult>


updateMessage

updateMessage(topicId: string, accessToken: string, messageId: string, data: string): Promise<PublishResult>

Defined in publisher/publisher.js:86

Update message and gets computed cid

Parameters:

Name Type Description
topicId string
accessToken string
messageId string
data string

Returns: Promise<PublishResult>

Readme

Keywords

none

Package Sidebar

Install

npm i @cuser/publisher

Weekly Downloads

1

Version

0.0.36

License

ISC

Unpacked Size

14.1 kB

Total Files

5

Last publish

Collaborators

  • rubeniskov