boxlang-express 0.2.6
Released .
- Filled in the STOMP 1.2 gaps identified in a spec-compliance pass over
Stomp.bx/StompFrameCodec.bx:RECEIPTnow sent for any client frame carrying areceiptheader (previously onlyDISCONNECT); fullACK/NACKsupport (SUBSCRIBE'sackheader, anackheader onMESSAGEunderclient/client-individualmodes, cumulative acking inclientmode);BEGIN/COMMIT/ABORTtransactions, scoped per connection per spec; bidirectional heartbeat negotiation (heart-beat:cx,cyonCONNECT, each direction's interval computed independently per spec section 6, plus server-side monitoring that closes a connection whose negotiated incoming heartbeats stop arriving); andcontent-lengthhonored on both read and write so a body with an embedded NUL byte round-trips correctly instead of being silently truncated at the first one.app.ws()'s WebSocket handshake now also negotiates thev12.stomp/v11.stomp/v10.stompSec-WebSocket-Protocolsubprotocols, for client libraries (stomp.js and others) that send and expect one echoed back — harmless to every otherapp.ws()route, confirmed directly: a client that never sends that header skips negotiation entirely. See Stomp.bx, StompFrameCodec.bx, and tests/specs/StompSpec.bx (20 specs, up from 12). - Followed up with a parity pass against
SocketBox (Ortus's own
WebSocket/STOMP library, read directly from source for this — its
README and
WebSocketSTOMP.cfc) to close the remaining real gaps: exchanges/bindings (direct/topic/fanout/distribution, plus a custom-exchange escape hatch via aclassconfig key), a live connection registry (getConnections()/getConnectionDetails()) withconnectionMetadatathreaded throughauthenticate()/authorize()and echoed back asCONNECTEDheaders, and server-side listeners (options.listeners) that react to a destination from plain server code via a new StompMessage.bx wrapper (auto-JSON-deserializing body,getConnection()null for a server-originated message). Deliberately still not built: multi-node clustering (SocketBox'sClusterManager/ClusterPeer— a distributed- systems feature with no cache-abstraction or multi-node deployment story here to build it against) and binary bodies (a transport limit of WebSocket text frames, not a broker choice). Found and fixed a new, previously-undiscovered BoxLang landmine while building this: a function parameter (or localvar) holding an actualnullcan't be referenced by name at all — not read, reassigned, or passed through to another function, onlyisNull()-checked — unlike avariables.-scope member, which tolerates storing and reading back a realnulldirectly. Worked around with a""sentinel converted to a realnullonly via a directvariables.x = javacast("null","")assignment (seeStompMessage.bx'sinit()); now documented indocs/ARCHITECTURE.md's landmines list alongside a second, smaller one (a bare#inside a BoxLang string literal needs escaping as##, which brokeTopicExchange.bx's own#wildcard match on first write). See tests/specs/StompParitySpec.bx (10 new specs). Full suite: 230/230.