WebConnect
The LocalStorage class encapsulates the access to data objects.
import { WebConnect } from "@schukai/monster/source/net/webconnect.mjs";Exported
WebConnectDerived from
BaseWithOptionsOptions
The Options listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits Options from these parent classes. If you cannot find a specific Options in this list, we recommend consulting the documentation of the BaseWithOptions.
Properties
The Properties listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits Properties from these parent classes. If you cannot find a specific Properties in this list, we recommend consulting the documentation of the BaseWithOptions.
Methods
The methods listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits methods from these parent classes. If you cannot find a specific method in this list, we recommend consulting the documentation of the BaseWithOptions.
Constructor
constructor([options])[options]{object}: options contains definitions for the webconnect.
Behavioral methods
close([code=1000],[reason=""])[code=1000]{number}: The close code.[reason=""]{string}: The close reason.
- {Promise}
State query methods
isConnected()- {boolean}
Static methods
[instanceSymbol]()- {symbol}
instanceof operator.Other methods
attachObserver(observer)observer{observer}: observer
- {ProxyObserver}
connect()- {Promise}
containsObserver(observer)observer{observer}: observer
- {boolean}
dataReceived()- {boolean}
detachObserver(observer)observer{observer}: observer
- {ProxyObserver}
peek()- {Object}
poll()- {Message}
send(message)message{message|object}: message
- {Promise}
Events
This component does not fire any public events. It may fire events that are inherited from its parent classes.