timestamp, nonce, and sig.
Incoming Packet (Spigot to Nexus Core)
Fields
number
required
The numeric addon ID registered with Nexus Core. Corresponds to the value returned by
addonId() on the target DataAddon.string
required
An identifier for the Spigot server sending the packet (e.g.
"pvp-1", "lobby", "admin"). Passed to handleRequest() as the source parameter.string
required
The
RequestType value identifying the operation to perform. One of: GET_DATA, SET_DATA, REMOVE_DATA, INCREMENT_DATA, UPDATE_DATA, RANKING, RANK_FINDER, BROADCAST, LOAD_CACHE.object
required
The request payload. Must include the
isId field value for single-document operations. For SET_DATA, include all fields to write.number
required
The sender’s current Unix time in milliseconds. Must be within 5 minutes of Nexus Core’s server clock.
string
required
A single-use UUID string for replay protection. Each nonce can only appear once within the timestamp window.
string
Base64-encoded HMAC-SHA256 signature over all packet fields except
sig itself, computed using NEXUS_SIGNING_KEY. Required when NEXUS_SIGNING_KEY is configured on Nexus Core.Outgoing Packet (Nexus Core to Spigot)
Since v1.5.1, responses from Nexus Core are also signed using theMessageAuth system. All DataAddon publish operations and heartbeat messages include timestamp, nonce, and sig.
Fields
number
The numeric addon ID echoed from the original request.
string
Always
"nexus" for responses originating from Nexus Core.string
The response type. Typically
"BROADCAST" for data responses routed back to the requesting server.string
The
source value from the original request packet. Nexus Core publishes the response to this server’s Redis channel.object
The response payload containing the complete document fields as stored in MongoDB.
number
Unix milliseconds at the time Nexus Core signed and published the response. Added in v1.5.1.
string
A single-use UUID generated by Nexus Core for this response. Added in v1.5.1.
string
Base64-encoded HMAC-SHA256 signature over all response fields except
sig itself, signed with NEXUS_SIGNING_KEY. Added in v1.5.1.Version History for Packet Format
Related Topics
- Security — how signatures are validated and generated
- Request Types — all valid
typefield values - Request Lifecycle — how packets flow from receipt to response