Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

InputMessage

import type { InputMessage } from "https://gitlab.com/soapbox-pub/strfry-policies/-/raw/develop/mod.ts";
interface InputMessage {
event: Event;
receivedAt: number;
sourceInfo: string;
sourceType:
| "IP4"
| "IP6"
| "Import"
| "Stream"
| "Sync";
type: "new" | "lookback";
}

§Properties

§
event: Event
[src]

The event posted by the client, with all the required fields such as id, pubkey, etc.

§
receivedAt: number
[src]

Unix timestamp of when this event was received by the relay.

§
sourceInfo: string
[src]

Specifics of the event's source. Either an IP address or a relay URL (for stream/sync).

§
sourceType: "IP4" | "IP6" | "Import" | "Stream" | "Sync"
[src]

Where this event came from. Typically will be IP4 or IP6, but in lookback can also be Import, Stream, or Sync.

§
type: "new" | "lookback"
[src]

Either new or lookback.