0.0.36 • Published 5 years ago

@cuser/publisher v0.0.36

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

5 years ago

0.0.31

5 years ago

0.0.32

5 years ago

0.0.33

5 years ago

0.0.34

5 years ago

0.0.35

5 years ago

0.0.36

5 years ago

0.0.29

5 years ago

0.0.27

5 years ago

0.0.25

5 years ago

0.0.26

5 years ago

0.0.18

5 years ago

0.0.16

5 years ago

0.0.17

5 years ago

0.0.12

5 years ago

0.0.8

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago