0.5.1 • Published 2 months ago

@skyware/firehose v0.5.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
2 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

2 months ago

0.4.1

2 months ago

0.4.0

4 months ago

0.4.3

2 months ago

0.5.1

2 months ago

0.4.2

2 months ago

0.3.2

9 months ago

0.3.0

12 months ago

0.2.0

12 months ago

0.3.1

12 months ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago