Constructor
new Firestorm(paramsopt)
- Description:
Create a new Firestorm instance
- All parameters are optional and can be edited using the name, address, and token fields
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
params |
FirestormCreationOption |
<optional> |
Firestorm instance name, server address, and write token |
Members
address :string
Type:
- string
clientVersion :string
Get the current version of Firestorm
Type:
- string
files :FirestormFiles
Firestorm file manager
Type:
- FirestormFiles
name :string
Type:
- string
serverVersion :Promise.<string>
Get the version of Firestorm used on the provided server
Type:
- Promise.<string>
token :string
Type:
- string
Methods
collection(name, addMethodsopt) → {Collection.<T>}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
name |
string | The name of the collection |
|
addMethods |
function |
<optional> |
Additional methods and data to add to the objects |
Returns:
The collection instance
- Type
- Collection.<T>
(async) isCompatibleAddress() → {Promise.<boolean>}
- Description:
Check whether the server-side Firestorm version is compatible with the client
- Source:
Returns:
- Whether the versions match
- Type
- Promise.<boolean>