scuttlebutt-client-lib / org.apache.tuweni.scuttlebutt.lib / FeedService

FeedService

class FeedService (source)

A service for operations that concern scuttlebutt feeds. Should be accessed via a ScuttlebuttClient instance.

Functions

createFeedStream

fun createFeedStream(streamHandler: Function<Runnable, StreamHandler<FeedMessage>>): Unit

Streams every message in the instance's database.

publish

fun <T : ScuttlebuttMessageContent> publish(content: T): AsyncResult<FeedMessage>

Publishes a message to the instance's own scuttlebutt feed, assuming the client established the connection using keys authorising it to perform this operation.