0.0.36 • Published 3 years ago

@cuser/publisher v0.0.36

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

@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:

NameType
coreCuserCore
authCuserAuth
optsCuserPublisherOptions & 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:

NameTypeDescription
topicIdstring
accessTokenstring
messageIdstring

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:

NameTypeDescription
topicIdstring
accessTokenstring
datastring

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:

NameTypeDescription
topicIdstring
accessTokenstring
messageIdstring
datastring

Returns: Promise<PublishResult>

0.0.30

3 years ago

0.0.31

3 years ago

0.0.32

3 years ago

0.0.33

3 years ago

0.0.34

3 years ago

0.0.35

3 years ago

0.0.36

3 years ago

0.0.29

3 years ago

0.0.27

3 years ago

0.0.25

3 years ago

0.0.26

3 years ago

0.0.18

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.12

3 years ago

0.0.8

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago