@toa.io/userland 0.2.1-dev.3 → 0.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/userland",
3
- "version": "0.2.1-dev.3",
3
+ "version": "0.3.0",
4
4
  "description": "Toa development kit",
5
5
  "homepage": "https://toa.io",
6
6
  "author": {
@@ -31,7 +31,7 @@ class Producer extends Connector {
31
31
  this.#component = component
32
32
  }
33
33
 
34
- async connection () {
34
+ async open () {
35
35
  for (const endpoint of this.#endpoints) {
36
36
  const command = label(this.#locator, endpoint)
37
37
 
@@ -27,7 +27,7 @@ class Receiver extends Connector {
27
27
  this.#receiver = receiver
28
28
  }
29
29
 
30
- async connection () {
30
+ async open () {
31
31
  await binding.subscribe(this.#label, (message) => this.#receiver.receive(message))
32
32
  }
33
33
  }