A token used to initiate a Fauna event source at a particular snapshot in time.

The example below shows how to request an event token from Fauna and use it to establish an event steam.

 const response = await client.query(fql`
Messages.byRecipient(User.byId("1234"))
`);
const eventSource = response.data;

const stream = client.stream(eventSource)
.on("add", (event) => console.log("New message", event))

stream.start();

Implements

Constructors

Properties

Constructors

Properties

token: string