@newhomestar/sdk 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/events.d.ts +1 -1
- package/dist/events.js +2 -2
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -305,7 +305,7 @@ export declare function withInboundEvent(db: any, msg: InboundMessage, handler:
|
|
|
305
305
|
*
|
|
306
306
|
* ## Connection lifecycle
|
|
307
307
|
*
|
|
308
|
-
* - Opens `GET /events/queue/stream?
|
|
308
|
+
* - Opens `GET /events/queue/stream?queue={queueName}` (SSE)
|
|
309
309
|
* - On message: routes → withInboundEvent() → ACK (or NACK on failure)
|
|
310
310
|
* - On keepalive (`: keepalive`): no action needed
|
|
311
311
|
* - On close/error: reconnects with exponential backoff (1s → 2s → 4s → ... → max)
|
package/dist/events.js
CHANGED
|
@@ -610,7 +610,7 @@ export async function withInboundEvent(db, msg, handler) {
|
|
|
610
610
|
*
|
|
611
611
|
* ## Connection lifecycle
|
|
612
612
|
*
|
|
613
|
-
* - Opens `GET /events/queue/stream?
|
|
613
|
+
* - Opens `GET /events/queue/stream?queue={queueName}` (SSE)
|
|
614
614
|
* - On message: routes → withInboundEvent() → ACK (or NACK on failure)
|
|
615
615
|
* - On keepalive (`: keepalive`): no action needed
|
|
616
616
|
* - On close/error: reconnects with exponential backoff (1s → 2s → 4s → ... → max)
|
|
@@ -777,7 +777,7 @@ export function startInboundConsumer(db, options) {
|
|
|
777
777
|
/** Main loop: connect, consume, reconnect */
|
|
778
778
|
async function _connect() {
|
|
779
779
|
while (!abort.signal.aborted) {
|
|
780
|
-
const streamUrl = `${eventsUrl}/events/queue/stream?
|
|
780
|
+
const streamUrl = `${eventsUrl}/events/queue/stream?queue=${encodeURIComponent(queueName)}&vt=${vt}`;
|
|
781
781
|
try {
|
|
782
782
|
console.log(`[nova/events] Connecting to SSE queue "${queueName}" ` +
|
|
783
783
|
`(attempt ${reconnectAttempt + 1})…`);
|
package/package.json
CHANGED