NetworkingModule
We’re temporarily disabling this capability while we work to improve performance and functionality. We'll reintroduce networking in the near future.
The NetworkingModule
class enables effects to fetch information from a network. To use the Networking class you must add the Networking capability to the project manifest. You also need to whitelist domains you'd like to access in the Capabilities menu. AR Studio requires the URL passed to the fetch()
method to be an HTTPS URL, with a certificate that chains up to a trusted certificate authority. Self-signed and other non-trusted certificates should not be expected to work.
Example
Properties
This module exposes no properties.
Methods
Method
Description
fetch
fetch(url: String) : Promise<ResponseObject>
Returns a promise for the result of the call. A then()
clause attached to this takes a single argument; that argument is a callback function which takes a single argument, which is the result of the call. The result of the call is an object with two elements: A status property indicating the HTTP response status of the call, and json()
function, which returns a promise for the dictionary containing the body of the response (which is expected to be JSON).
Classes
This module exposes no classes.
Last updated