Skip to main content

Class: HttpConnection

A connection to a DriftDB room over HTTP.

This is mainly used in environments where WebSockets are not available.

Constructors

constructor

new HttpConnection(httpUrl)

Parameters

NameType
httpUrlstring

Defined in

js-pkg/packages/driftdb/src/http.ts:9

Properties

httpUrl

Private httpUrl: string

Defined in

js-pkg/packages/driftdb/src/http.ts:9

Methods

send

send(message): Promise<MessageFromDb>

Parameters

NameType
messageMessageToDb

Returns

Promise<MessageFromDb>

Defined in

js-pkg/packages/driftdb/src/http.ts:11