ID of the network object - all processes must use this ID to look up this network object
Optional
createLocalObjectToProxy: LocalObjectToProxyCreator<T>Function that creates an object that the network object proxy
will be based upon. The object this function creates cannot have an onDidDispose
property.
This function is useful for setting up network events on a network object.
A promise for the network object with specified ID if one exists, undefined otherwise
Search locally known network objects for the given ID. Don't look on the network for more objects.
Whether we know of an existing network object with the provided ID already on the network
Sets up the service. Only runs once and always returns the same promise after that
Set up an object to be shared on the network.
ID of the object to share on the network. All processes must use this ID to look it up.
The object to set up as a network object. It will have an event named
onDidDispose
added to its properties. An error will be thrown if the object already had an
onDidDispose
property on it. If the object already contained a dispose
function, a new
dispose
function will be set that calls the existing function (amongst other things). If the
object did not already define a dispose
function, one will be added.
WARNING: setting a network object mutates the provided object.
Optional
objectType: stringOptional
objectAttributes: { [property: string]: unknown }Optional
objectDocumentation: NetworkObjectDocumentationobjectToShare
modified to be a network object
Get a network object that has previously been set up to be shared on the network. A network object is a proxy to an object living somewhere else that local code can use.
Running this function twice with the same inputs yields the same network object.