V8 Javascript API

Globals

[Architecture]

Description

The V8 execution environment provides a number of global objects and functions available to all modules. These are documented here as classes but are actually global objects similar to window in traditional web browser JavaScript implementations.

Classes

class 
The main interface from a V8 command into RealityServer. More...
class 
The Store interface provides a common shared data store available to all v8 commands run in the same RealityServer process. More...
class 
The console class provides access to the RealityServer log file. More...

Functions

Promise sleep( Number milliseconds)
Sleep for the given number of milliseconds. More...
 sleep_sync( Number milliseconds)
Sleeps synchronously for the given number of milliseconds. More...

Functions

Promise sleep( Number milliseconds)

Sleep for the given number of milliseconds. Returns a promise that resolves after the given number of milliseconds.

Parameters

milliseconds
how many milliseconds to sleep for.

Returns

the returned promise resolves to undefined after the given amount of time.

sleep_sync( Number milliseconds)

Sleeps synchronously for the given number of milliseconds.

Parameters

milliseconds
how many milliseconds to sleep for.