@ccmsg/protocol 1.21.0 → 1.22.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": "@ccmsg/protocol",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "description": "Wire contract (schema + types + op attribute table) shared by the ccmsg daemon and web UI",
5
5
  "license": "MIT",
6
6
  "author": "kawaz",
package/src/attributes.ts CHANGED
@@ -19,10 +19,10 @@ export interface OpAttributes {
19
19
  readonly roles: readonly Role[];
20
20
  /** Whether the op requires an identity settled by a greeting.
21
21
  *
22
- * On a WebSocket connection the ops that may arrive before one are the three
23
- * greetings and `instance.ping` a reachability check answers about the
24
- * instance and not about the caller, so there is no identity for it to want.
25
- * The ops carried over HTTP answer before any connection exists, which is
22
+ * On a WebSocket connection the only ops that may arrive before one are the
23
+ * three greetings: a caller that will not say who it is has nothing to be
24
+ * answered, and whether the instance is there is already known once the
25
+ * connection was made. The ops carried over HTTP answer before any connection exists, which is
26
26
  * what `carrier` says; `needs_hello` is false on them because there is no
27
27
  * greeting to have sent, not because they are open on a settled one. */
28
28
  readonly needs_hello: boolean;
@@ -90,7 +90,7 @@ export const OP_ATTRIBUTES = {
90
90
  "instance.ping": {
91
91
  plane: "common",
92
92
  roles: ALL_ROLES,
93
- needs_hello: false,
93
+ needs_hello: true,
94
94
  locality: "cluster",
95
95
  errors: [],
96
96
  },