@openfn/ws-worker 0.1.0 → 0.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # ws-worker
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Destroy workers on close
8
+ - Updated dependencies
9
+ - @openfn/engine-multi@0.1.1
10
+
3
11
  ## 0.1.0
4
12
 
5
13
  First release of the websocket worker, which handles comm between Lightning and the multi-threaded engine.
package/README.md CHANGED
@@ -36,7 +36,7 @@ You may want to add `--log debug` or disable the work loop, see below.
36
36
 
37
37
  The default settings will try and connect to lightning at `localhost:4000`.
38
38
 
39
- Pass a custom lightining url with `-l ws://localhost:1234`. You need to include the websocket endpoint, which at the time of writing is `/worker`.
39
+ Pass a custom lightining url with `-l ws://localhost:1234/worker`. (Note that you need to include the websocket endpoint, which at the time of writing is `/worker`.)
40
40
 
41
41
  Use `-l mock` to connect to a lightning mock server (on the default port).
42
42
 
package/dist/index.js CHANGED
@@ -501,6 +501,7 @@ function createServer(engine, options = {}) {
501
501
  app.destroy = () => {
502
502
  logger.info("Closing server...");
503
503
  server.close();
504
+ engine.destroy();
504
505
  app.killWorkloop?.();
505
506
  logger.success("Server closed");
506
507
  };
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node