Physics Gateway Service
Serialization (one command at a time) is at RabbitMQ level: Chrono must consume from physics_engine_commands with prefetch(1) or a single worker. Then "waiting" = messages in the queue; "running" = the one unacked message Chrono is processing. No Node-side queue needed.
Classes
Members
Methods
# inner findInvalidBatchCommandEntry(payload) → {Object|null}
Find invalid entries (null/undefined) inside batch commands payload
Parameters:
| Name | Type | Description |
|---|---|---|
payload |
object
|
Physics command payload |
Invalid entry details
Object
|
null
# inner isSystemError(error) → {boolean}
Type guard to check if error has system properties
Parameters:
| Name | Type | Description |
|---|---|---|
error |
unknown
|
The error to check |
True if error has system properties
boolean
# inner sanitizeBatchPayload(payload) → {object}
Sanitize batch payload (remove null/undefined entries)
Parameters:
| Name | Type | Description |
|---|---|---|
payload |
object
|
Physics command payload |
Sanitization metadata (removedIndices/originalCount/sanitizedCount)
object