method DurableObjectBackplane.prototype.connect
DurableObjectBackplane.prototype.connect(): Promise<void>

Opens the socket to the Durable Object. Idempotent and concurrency-safe.

Return Type

Promise<void>

Throws

CloudflareUnsupportedError

When the object answers an upgrade with no webSocket member

Usage

import { DurableObjectBackplane } from "cloudflare-plugin/src/index.ts";