Interface SetPacket
interface SetPacket {
cmd: "Set";
default: JSONSerializable;
key: string;
operations: DataStorageOperation[];
want_reply: boolean;
[p: string]: JSONSerializable;
}
cmd: "Set";
default: JSONSerializable;
key: string;
operations: DataStorageOperation[];
want_reply: boolean;
[p: string]: JSONSerializable;
}
Indexable
Additional arguments to be returned in SetReplyPacket.
Index
Properties
Properties
Readonly
cmd
cmd
Readonly
default
The default value to use in case the key has no value on the server.
Readonly
key
key: string
The key to manipulate.
Readonly
operations
Operations to apply to the value, multiple operations can be present, and they will be executed in order of appearance. See DataStorageOperation for information on supported operations.
Readonly
want_reply
want_reply : boolean
If set, the server will send a SetReplyPacket back to the client.
Sent by the client to write data to the server's data storage, that data can then be shared across worlds or just saved for later. Values for keys in the data storage can be retrieved with a GetPacket, or monitored with a SetNotifyPacket.
Additional arguments sent in this package will also be added to the SetReplyPacket it triggers.