0.5.1 • Published 10 months ago

@skyware/firehose v0.5.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
10 months ago

A simple client for consuming data from an AT Protocol Relay.

Documentation

Installation

npm install @skyware/firehose

Example Usage

import { Firehose } from "@skyware/firehose";

const firehose = new Firehose();
firehose.on("commit", (commit) => {
	for (const op of commit.ops) {
		console.log(op);
	}
});
firehose.start();

Events

EventDescription
commitRepresents a commit to a user's repository.
identityRepresents a change to an account's identity. Could be an updated handle, signing key, or PDS hosting endpoint.
handleRepresents an update of an account's handle, or transition to/from invalid state (may be deprecated in favor of identity).
tombstoneIndicates that an account has been deleted (may be deprecated in favor of identity or a future account event).
infoAn informational message from the relay.
openEmitted when the websocket connection is opened.
closeEmitted when the websocket connection is closed.
errorEmitted when an error occurs while handling a message.
websocketErrorEmitted when an error occurs with the websocket connection.
0.5.0

10 months ago

0.4.1

10 months ago

0.4.0

11 months ago

0.4.3

10 months ago

0.5.1

10 months ago

0.4.2

10 months ago

0.3.2

1 year ago

0.3.0

2 years ago

0.2.0

2 years ago

0.3.1

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago