0.0.36 • Published 4 years ago

@cuser/publisher v0.0.36

Weekly downloads
1
License
ISC
Repository
-
Last release
4 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

4 years ago

0.0.31

4 years ago

0.0.32

4 years ago

0.0.33

4 years ago

0.0.34

4 years ago

0.0.35

4 years ago

0.0.36

4 years ago

0.0.29

4 years ago

0.0.27

4 years ago

0.0.25

4 years ago

0.0.26

4 years ago

0.0.18

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.12

4 years ago

0.0.8

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago