This resolved the issue and made it work as expected:
return arrayOf(
COMMAND,
KEY,
ISIN,
PRICE,
QUANTITY,
SIDE,
COUNT
)
Previously, using the following order didn't work and caused frequent disconnections:
return arrayOf(
KEY,
COMMAND,
ISIN,
PRICE,
QUANTITY,
SIDE,
COUNT
)
It seems the "COMMAND" field absolutely needs to be at the first index for proper functionality.