Cloudflare overview
Added in v1.0.0
Table of contents
DurableObject
EventLogDurableObject (class)
Signature
export declare class EventLogDurableObject {
constructor(options: {
readonly ctx: DurableObjectState
readonly env: unknown
readonly storageLayer: Layer.Layer<EventLogServer.Storage>
})
}
Added in v1.0.0
webSocketMessage (method)
Signature
webSocketMessage(ws: WebSocket, message: string | ArrayBuffer)
Added in v1.0.0
handleRequest (method)
Signature
private async handleRequest(
ws: WebSocket,
request: typeof EventLogRemote.ProtocolRequest.Type
): Promise<void>
Added in v1.0.0
encodeChanges (method)
Signature
private encodeChanges(
publicKey: string,
entries: ReadonlyArray<EncryptedRemoteEntry>
): ReadonlyArray<Uint8Array>
Added in v1.0.0
webSocketError (method)
Signature
webSocketError(_ws: WebSocket, error: Error): void
Added in v1.0.0
webSocketClose (method)
Signature
webSocketClose(_ws: WebSocket, code: number, reason: string): void
Added in v1.0.0
fetch (method)
Signature
async fetch(): Promise<Response>
Added in v1.0.0
runtime (property)
Signature
readonly runtime: ManagedRuntime.ManagedRuntime<EventLogServer.Storage, never>
Added in v1.0.0