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
>
Since v1.0.0
storage
PersistedEntry (class)
Signature
declare class PersistedEntry
Since v1.0.0
Storage (class)
Signature
declare class Storage
Since v1.0.0
layerStorageMemory
Signature
declare const layerStorageMemory: Layer.Layer<Storage, never, never>
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
>
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
>
Since v1.0.0