ReactNativeRemote
Extends
Constructors
new ReactNativeRemote()
new ReactNativeRemote(
connector,
logger,
options?): ReactNativeRemote
Parameters
Parameter | Type | Default value |
---|---|---|
connector | RemoteConnector | undefined |
logger | ILogger | DEFAULT_REMOTE_LOGGER |
options ? | Partial <AbstractRemoteOptions > | undefined |
Returns
Overrides
Accessors
fetch
get fetch(): (input, init?) => Promise<Response>(input, init?) => Promise<Response>(input, init?) => Promise<Response>(input, init?) => Promise<Response>(input, init?) => Promise<Response>(input, init?) => Promise<Response>
Returns
Function
a fetch implementation (function) which can be called to perform fetch requests
Parameters
Parameter | Type |
---|---|
input | RequestInfo | URL |
init ? | RequestInit |
Returns
Promise
<Response
>
Parameters
Parameter | Type |
---|---|
input | RequestInfo |
init ? | RequestInit |
Returns
Promise
<Response
>
Parameters
Parameter | Type |
---|---|
input | RequestInfo |
init ? | RequestInit |
Returns
Promise
<Response
>
Parameters
Parameter | Type |
---|---|
input | RequestInfo |
init ? | RequestInit |
Returns
Promise
<Response
>
Parameters
Parameter | Type |
---|---|
input | RequestInfo |
init ? | RequestInit |
Returns
Promise
<Response
>
Parameters
Parameter | Type |
---|---|
input | string | Request | URL |
init ? | RequestInit |
Returns
Promise
<Response
>
Methods
get()
get(path, headers?): Promise<any>
Parameters
Parameter | Type |
---|---|
path | string |
headers ? | Record <string , string > |
Returns
Promise
<any
>
Inherited from
getBSON()
getBSON(): Promise<typeof BSON>
Provides a BSON implementation. The import nature of this varies depending on the platform
Returns
Promise
<typeof BSON
>
Overrides
getCredentials()
getCredentials(): Promise<null | PowerSyncCredentials>
Returns
Promise
<null
| PowerSyncCredentials
>
Inherited from
getUserAgent()
getUserAgent(): string
Returns
string
Overrides
post()
post(
path,
data,
headers?): Promise<any>
Parameters
Parameter | Type |
---|---|
path | string |
data | any |
headers ? | Record <string , string > |
Returns
Promise
<any
>
Inherited from
postStream()
postStream(options): Promise<DataStream<StreamingSyncLine>>
Connects to the sync/stream http endpoint
Parameters
Parameter | Type |
---|---|
options | SyncStreamOptions |
Returns
Promise
<DataStream
<StreamingSyncLine
>>
Overrides
postStreaming()
postStreaming(
path,
data,
headers?,
signal?): Promise<any>
Parameters
Parameter | Type |
---|---|
path | string |
data | any |
headers ? | Record <string , string > |
signal ? | AbortSignal |
Returns
Promise
<any
>
Inherited from
socketStream()
socketStream(options): Promise<DataStream<StreamingSyncLine>>
Connects to the sync/stream websocket endpoint
Parameters
Parameter | Type |
---|---|
options | SyncStreamOptions |
Returns
Promise
<DataStream
<StreamingSyncLine
>>