originOS Browser Methods
Last updated
Legacy (originOS). These string methods were the networking surface of originOS OSL, running in the browser/rotur environment. In the OSL CLI use the
requests,netandwspackages instead. These pages are kept for reference.
The methods below are called on a URL string. Two families exist:
HTTP - .httpGet() and .http(method, data, headers) block until the request finishes; .getAsync() returns "Loading" until the response arrives so the UI keeps running.
rotur - .roturConnect() and .roturSend(msg, target) exchange packets over the rotur network.
See also WebSockets for persistent connections.
Last updated