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
Name | Type |
---|---|
httpUrl | string |
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
Name | Type |
---|---|
message | MessageToDb |
Returns
Promise
<MessageFromDb
>