@rivetkit/engine-runner 0.0.0-pr.4879.d508104 → 0.0.0-pr.4880.c7bfbc5
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/mod.cjs +3 -7
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.js +3 -7
- package/dist/mod.js.map +1 -1
- package/package.json +3 -3
- package/src/mod.ts +3 -16
package/dist/mod.js
CHANGED
|
@@ -1815,12 +1815,9 @@ var Runner = class {
|
|
|
1815
1815
|
);
|
|
1816
1816
|
}
|
|
1817
1817
|
this.#kvRequests.clear();
|
|
1818
|
-
const pegboardWebSocket = this
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
const isConnecting = readyState === 0;
|
|
1822
|
-
if (pegboardWebSocket && (isOpen || isConnecting)) {
|
|
1823
|
-
if (immediate || isConnecting) {
|
|
1818
|
+
const pegboardWebSocket = this.getPegboardWebSocketIfReady();
|
|
1819
|
+
if (pegboardWebSocket) {
|
|
1820
|
+
if (immediate) {
|
|
1824
1821
|
pegboardWebSocket.close(1e3, "pegboard.runner_shutdown");
|
|
1825
1822
|
} else {
|
|
1826
1823
|
try {
|
|
@@ -2075,7 +2072,6 @@ var Runner = class {
|
|
|
2075
2072
|
const init = message.val;
|
|
2076
2073
|
if (this.runnerId !== init.runnerId) {
|
|
2077
2074
|
this.runnerId = init.runnerId;
|
|
2078
|
-
this.#logCached = void 0;
|
|
2079
2075
|
this.#stopAllActors();
|
|
2080
2076
|
}
|
|
2081
2077
|
this.#protocolMetadata = init.metadata;
|