Skip to main content Link Search Menu Expand Document (external link)

EventLogServer.ts overview

Since v1.0.0


Exports Grouped by Category


constructors

makeHandler

Signature

declare const makeHandler: Effect.Effect<
  (socket: Socket.Socket) => Effect.Effect<void, Socket.SocketError, Scope.Scope>,
  never,
  Storage
>

Source

Since v1.0.0

storage

PersistedEntry (class)

Signature

declare class PersistedEntry

Source

Since v1.0.0

Storage (class)

Signature

declare class Storage

Source

Since v1.0.0

layerStorageMemory

Signature

declare const layerStorageMemory: Layer.Layer<Storage, never, never>

Source

Since v1.0.0

makeStorageMemory

Signature

declare const makeStorageMemory: Effect.Effect<
  {
    readonly getId: Effect.Effect<RemoteId>
    readonly write: (
      publicKey: string,
      entries: ReadonlyArray<PersistedEntry>
    ) => Effect.Effect<ReadonlyArray<EncryptedRemoteEntry>>
    readonly entries: (publicKey: string, startSequence: number) => Effect.Effect<ReadonlyArray<EncryptedRemoteEntry>>
    readonly changes: (
      publicKey: string,
      startSequence: number
    ) => Effect.Effect<Mailbox.ReadonlyMailbox<EncryptedRemoteEntry>, never, Scope.Scope>
  },
  never,
  Scope.Scope
>

Source

Since v1.0.0

websockets

makeHandlerHttp

Signature

declare const makeHandlerHttp: Effect.Effect<
  Effect.Effect<
    HttpServerResponse.HttpServerResponse,
    Socket.SocketError | HttpServerError.RequestError,
    Scope.Scope | HttpServerRequest.HttpServerRequest
  >,
  never,
  Storage
>

Source

Since v1.0.0