@vehicle-sil/gui-client 0.2.0 → 0.4.0-rc.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/README.ja.md CHANGED
@@ -83,20 +83,20 @@ editor.setVisible(true);
83
83
 
84
84
  ### クライアント
85
85
 
86
- | 種類 | 名前 |
87
- | ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88
- | 関数 | `createClient(options)` |
89
- | 型 | `ClientOptions`(`baseUrl`、`token`、`origin`、`http`、`socket`、`answerTimeoutMs`、`onError`) |
90
- | 型 | `GuiClient`(`connection`、`session`、`run`、`time`、`variables`、`app`、`limits`、`connect()`、`close()`、`loadApp()`、`configs()`、`config(file)`、`check()`、`describe()`、`saveConfig()`、`connections()`、`fetchSession()`、`dashboard(file)`、`scenarios(file)`、`recording()`) |
91
- | 定数 | `DEFAULT_LIMITS` |
86
+ | 種類 | 名前 |
87
+ | ---- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88
+ | 関数 | `createClient(options)` |
89
+ | 型 | `ClientOptions`(`baseUrl`、`token`、`origin`、`http`、`socket`、`answerTimeoutMs`、`onError`) |
90
+ | 型 | `GuiClient`(`connection`、`session`、`run`、`time`、`variables`、`app`、`limits`、`connect()`、`close()`、`loadApp()`、`configs()`、`config(file)`、`check()`、`describe()`、`saveConfig()`、`prepare()`、`connections()`、`dashboard(file)`、`scenarios(file)`、`recording()`) |
91
+ | 定数 | `DEFAULT_LIMITS` |
92
92
 
93
93
  ### 正面の口
94
94
 
95
- | 種類 | 名前 |
96
- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
97
- | 関数 | `connect(options?)`、`createFront(options)`、`watch(source, fn)`、`until(source, test, options?)` |
98
- | クラス | `ActionError`(`code`、`message`、`outcome`、`findings`) |
99
- | 型 | `ConnectOptions`(`base_url`、`token`、`origin`、`http`、`socket`、`answer_timeout_ms`、`on_error`)、`Front`(`low`、`status`、`clock`、`controls`、`scenario`、`outside`、`run`、`time`、`variable()`、`scenarios()`、`connections()`、`check()`、`readConfig()`、`describeAgain()`、`saveConfig()`、`close()`)、`FrontStatus`、`FrontResult`、`FrontClock`、`FrontControls`、`Control`、`Reason`、`FrontScenario`、`FrontRun`、`FrontTime`、`FrontVariable`、`VariableView`、`Intent`、`Outside`、`ConnectEntry`、`ConnectTarget`、`ConnectListError`、`Link`、`RunState`、`EndKind`、`Pacing`、`OperationName` |
95
+ | 種類 | 名前 |
96
+ | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
97
+ | 関数 | `connect(options?)`、`createFront(options)`、`watch(source, fn)`、`until(source, test, options?)` |
98
+ | クラス | `ActionError`(`code`、`message`、`outcome`、`findings`) |
99
+ | 型 | `ConnectOptions`(`base_url`、`token`、`origin`、`http`、`socket`、`answer_timeout_ms`、`on_error`)、`Front`(`low`、`status`、`clock`、`controls`、`scenario`、`runtime`、`outside`、`prepare()`、`configs()`、`recording()`、`run`、`time`、`variable()`、`scenarios()`、`connections()`、`check()`、`readConfig()`、`describeAgain()`、`saveConfig()`、`close()`)、`FrontStatus`、`FrontResult`、`FrontClock`、`FrontControls`、`Control`、`Reason`、`FrontScenario`、`FrontRun`、`FrontTime`、`FrontVariable`、`VariableView`、`Intent`、`Outside`、`ConnectEntry`、`ConnectTarget`、`ConnectListError`、`Link`、`RunState`、`EndKind`、`Pacing`、`OperationName`、`RuntimeStatus` |
100
100
 
101
101
  ### トークン
102
102
 
@@ -118,17 +118,17 @@ editor.setVisible(true);
118
118
 
119
119
  ### セッションのコピー
120
120
 
121
- | 種類 | 名前 |
122
- | ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
123
- | 型 | `ClientSession`(`session`、`currentTarget`、`currentInstance`、`ready`、`allowed`、`lastEventAt`、`notices`、`rejected`、`incompatible`、`onMessages`、`report`、`dismissNotice`) |
124
- | 型 | `Notice`、`SessionView`、`ParticipantView`、`LauncherView`、`LogLine`、`LogSource`、`TimeView`、`CommandView`、`RunOutcome`、`LauncherAnswer` |
125
- | 関数 | `runOutcome`、`phaseIndex`、`isHolding`、`launcherAnswer` |
121
+ | 種類 | 名前 |
122
+ | ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
123
+ | 型 | `ClientSession`(`session`、`currentTarget`、`currentInstance`、`ready`、`allowed`、`runtime`、`lastEventAt`、`notices`、`rejected`、`incompatible`、`onMessages`、`report`、`dismissNotice`) |
124
+ | 型 | `Notice`、`SessionView`、`ParticipantView`、`LauncherView`、`LogLine`、`LogSource`、`TimeView`、`CommandView`、`RunOutcome`、`LauncherAnswer` |
125
+ | 関数 | `runOutcome`、`phaseIndex`、`isHolding`、`launcherAnswer` |
126
126
 
127
- `ClientSession.allowed` は、GUI サーバーがいま受けるものです(`start`、`stop`、`force`。それぞれ `ok`、理由のコード `reason`、文 `message`。`rev` の大きい方が勝ちます。サーバーが言うまでは `null`)。`SessionView.launcherState` は、ランチャーの最後の `state` イベントです(実行の状態と、いま受けるもの。`rev` の大きい方が勝ちます。届くまでは `null`)。`launcherAnswer(launcherState, name)` は、1 つの操作(`write`、`pause` など)について、それが言うことを読みます: `reason`(受けるなら `null`)と `caution`。まだ言っていないランチャー(`state` がまだない、その操作の項目がない)は、受けないものとします(`unsupported`)。正面の口の `controls` と `variables.bind` は、これでランチャーを読みます。
127
+ `ClientSession.allowed` は、GUI サーバーがいま受けるものです(`start`、`stop`、`force`、`save`。それぞれ `ok`、理由のコード `reason`、文 `message`。サーバーが言うまでは `null`)。`SessionView.launcherState` は、ランチャーの最後の `state` イベントです(実行の状態と、いま受けるもの。`rev` の大きい方が勝ちます。届くまでは `null`)。`launcherAnswer(launcherState, name)` は、1 つの操作(`write`、`pause` など)について、それが言うことを読みます: `reason`(受けるなら `null`)と `caution`。まだ言っていないランチャー(`state` がまだない、その操作の項目がない)は、受けないものとします(`unsupported`)。正面の口の `controls` と `variables.bind` は、これでランチャーを読みます。
128
128
 
129
- サーバーが付ける session と変数の revision は、HTTP と WebSocket の要約の前後関係を示します。旧サーバーには番号がないため、両者の順序は最善を尽くす扱いです。revision によって replay、コマンドの応答、確定済み操作結果は捨てません。
129
+ 順序付きの通知(`session`、`event`、`allowed`、`runtime`、`variables`、`availability`、`operation`、`error`、`dropped`、`synced`)は、`(instance, run_id, stream_seq)` で順序付けられた単一の WebSocket ストリームで届きます。HTTP の変更操作(`api/run`、`api/stop-session`、`api/prepare`、`api/time`、`api/write`)は受領応答だけを返し、状態の更新は WebSocket ストリームで届きます。
130
130
 
131
- `currentTarget()` は現在の `{session, instance}` を返し、不明なら `null` を返します。`currentInstance()` は実行がなくても直近に認証したサーバーのインスタンスを返し、切断中も保持します。再接続ではサーバーが保持する履歴を先頭から再送してもらい、再起動前のカーソルを別のインスタンスに使いません。HTTP のみの利用者は、サーバー再起動後に `fetchSession()` でコピーを更新できます。
131
+ `currentTarget()` は現在の `{run_id, instance}` を返し、不明なら `null` を返します。`currentInstance()` は実行がなくても直近に認証したサーバーのインスタンスを返し、切断中も保持します。同じインスタンスと実行への再接続では `{instance, run_id, after_stream_seq}` を送ってそのカーソル以後のログイベントだけを再送してもらい、サーバーのインスタンスが変わったときは新しい `hello` から取り直します。
132
132
 
133
133
  ### 実行の操作
134
134
 
@@ -326,13 +326,17 @@ try {
326
326
  | `clock` | `sim_ms`(仮想時間の ms。実行の前は `null`)、`speed`、`actual_speed`(直近のおよそ 1 秒に出た速さ。止まっている間と、始まった直後は `null`)、`pacing`(`not-paced`、`on-time`、`late`)。よく変わるので `status` と分けています |
327
327
  | `controls` | 操作ごとの、いま使えるか: `start`、`stop`、`force_stop`、`pause`、`resume`、`step`(`min_ms` と `max_ms` つき)、`run_until`、`speed`(`min`、`max`、`fastest`(数のほかに `'max'` を受けるか)つき)、`save` |
328
328
  | `scenario` | いまの(か最後の)実行のシナリオ: `file`、`name`、`status`、`steps`、`timeline_url`。シナリオのない実行では `null` |
329
+ | `runtime` | 常駐 hot / cold 実行の状態: `mode`、`state`、`config`、`reason`、`message` |
330
+ | `prepare(options?)` | 対応していれば `file` 用の常駐ランチャーを事前準備(`POST api/prepare`)し、非対応なら理由つきで `cold` を返す |
331
+ | `configs()` | サーバーの root 配下の構成ファイル一覧を取得する(`GET api/configs`) |
332
+ | `recording()` | いまの(か最後の)実行で反映された書き込みのシナリオ YAML(`GET api/recording`)、なければ `null` を返す |
329
333
  | `outside` | 実行の `connect` が実機のバスにつないだネットワーク(下の「ネットワークを外につなぐ」) |
330
334
  | `connections({ network }, { file }?)`、`check(intent?, { file }?)` | ネットワークをつなげる先と、始めずに意図を確かめた結果(下の「ネットワークを外につなぐ」) |
331
335
  | `readConfig({ file }?)` | 構成ファイルの、保存されているとおりの文と `stamp`(下の「構成ファイルの文を編集する」) |
332
336
  | `check(intent?, { file, text }?)` | `text` つきなら、そのファイルの、まだ保存していない文の check(同じ節) |
333
337
  | `describeAgain({ file, variant }?)` | 保存したファイルの参加者の説明を保存し直し、その check を返す(同じ節) |
334
338
  | `saveConfig({ file, text, stamp })` | 文をそのファイルとして、読んだときの `stamp`(`null` は新しいファイル)つきで保存し、新しい `stamp` を返す(同じ節) |
335
- | `run` | `start(intent?, { file }?)`、`stop()`、`forceStop()` |
339
+ | `run` | `start(intent?, { file, onStarted }?)`、`stop()`、`forceStop()` |
336
340
  | `time` | `pause()`、`resume()`、`step(ms)`、`setSpeed(value)`、`runUntil(ms)` |
337
341
  | `variable(ref)` | 変数 1 つ。`"ECU.変数"`(最初の点で切る)か `{ peer, name }`(名前に点を含む ECU)で指します |
338
342
  | `low`、`close()` | 同じ接続の `GuiClient`。`close()` は切ります(共有している接続は、次の `connect()` がつなぎ直します) |
@@ -650,7 +654,7 @@ watch.close();
650
654
  - 反映されていないとわかってから送り直します。
651
655
  - 値を足し込むような(同じ書き込みを 2 回すると結果が変わる)使い方では、特に守ります。同じ値を書くだけなら、2 回書いても結果は同じです。
652
656
 
653
- **再接続**: 結果を待つ間に接続が切断されても、再接続した後の要約(`hello`、`fetchSession()`)で続きがわかります。要約には、サーバーが覚えている未確定の操作の全部と、番号が `operations_from_seq` 以上の操作の全部が入っています(サーバーが受け取るもののうち。シナリオ自身の書き込みの操作は届きません)。
657
+ **再接続**: 結果を待つ間に接続が切断されても、再接続した後の要約(`hello`)で続きがわかります。要約には、サーバーが覚えている未確定の操作の全部と、番号が `operations_from_seq` 以上の操作の全部が入っています(サーバーが受け取るもののうち。シナリオ自身の書き込みの操作は届きません)。
654
658
 
655
659
  | 自分の操作 | ライブラリの扱い |
656
660
  | ---------------------------------------------------- | ----------------------------------------------------------- |
package/README.md CHANGED
@@ -83,20 +83,20 @@ The names that `src/index.ts` exports, by group. Parentheses list the members of
83
83
 
84
84
  ### Client
85
85
 
86
- | Kind | Name |
87
- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88
- | Function | `createClient(options)` |
89
- | Type | `ClientOptions` (`baseUrl`, `token`, `origin`, `http`, `socket`, `answerTimeoutMs`, `onError`) |
90
- | Type | `GuiClient` (`connection`, `session`, `run`, `time`, `variables`, `app`, `limits`, `connect()`, `close()`, `loadApp()`, `configs()`, `config(file)`, `check()`, `describe()`, `saveConfig()`, `connections()`, `fetchSession()`, `dashboard(file)`, `scenarios(file)`, `recording()`) |
91
- | Constant | `DEFAULT_LIMITS` |
86
+ | Kind | Name |
87
+ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88
+ | Function | `createClient(options)` |
89
+ | Type | `ClientOptions` (`baseUrl`, `token`, `origin`, `http`, `socket`, `answerTimeoutMs`, `onError`) |
90
+ | Type | `GuiClient` (`connection`, `session`, `run`, `time`, `variables`, `app`, `limits`, `connect()`, `close()`, `loadApp()`, `configs()`, `config(file)`, `check()`, `describe()`, `saveConfig()`, `prepare()`, `connections()`, `dashboard(file)`, `scenarios(file)`, `recording()`) |
91
+ | Constant | `DEFAULT_LIMITS` |
92
92
 
93
93
  ### Front door
94
94
 
95
- | Kind | Name |
96
- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
97
- | Function | `connect(options?)`, `createFront(options)`, `watch(source, fn)`, `until(source, test, options?)` |
98
- | Class | `ActionError` (`code`, `message`, `outcome`, `findings`) |
99
- | Type | `ConnectOptions` (`base_url`, `token`, `origin`, `http`, `socket`, `answer_timeout_ms`, `on_error`), `Front` (`low`, `status`, `clock`, `controls`, `scenario`, `outside`, `run`, `time`, `variable()`, `scenarios()`, `connections()`, `check()`, `readConfig()`, `describeAgain()`, `saveConfig()`, `close()`), `FrontStatus`, `FrontResult`, `FrontClock`, `FrontControls`, `Control`, `Reason`, `FrontScenario`, `FrontRun`, `FrontTime`, `FrontVariable`, `VariableView`, `Intent`, `Outside`, `ConnectEntry`, `ConnectTarget`, `ConnectListError`, `Link`, `RunState`, `EndKind`, `Pacing`, `OperationName` |
95
+ | Kind | Name |
96
+ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
97
+ | Function | `connect(options?)`, `createFront(options)`, `watch(source, fn)`, `until(source, test, options?)` |
98
+ | Class | `ActionError` (`code`, `message`, `outcome`, `findings`) |
99
+ | Type | `ConnectOptions` (`base_url`, `token`, `origin`, `http`, `socket`, `answer_timeout_ms`, `on_error`), `Front` (`low`, `status`, `clock`, `controls`, `scenario`, `runtime`, `outside`, `prepare()`, `configs()`, `recording()`, `run`, `time`, `variable()`, `scenarios()`, `connections()`, `check()`, `readConfig()`, `describeAgain()`, `saveConfig()`, `close()`), `FrontStatus`, `FrontResult`, `FrontClock`, `FrontControls`, `Control`, `Reason`, `FrontScenario`, `FrontRun`, `FrontTime`, `FrontVariable`, `VariableView`, `Intent`, `Outside`, `ConnectEntry`, `ConnectTarget`, `ConnectListError`, `Link`, `RunState`, `EndKind`, `Pacing`, `OperationName`, `RuntimeStatus` |
100
100
 
101
101
  ### Token
102
102
 
@@ -118,17 +118,17 @@ In the browser, call `takeToken(window)`. It reads `#token=` from the URL, remov
118
118
 
119
119
  ### Session copy
120
120
 
121
- | Kind | Name |
122
- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
123
- | Type | `ClientSession` (`session`, `currentTarget`, `currentInstance`, `ready`, `allowed`, `lastEventAt`, `notices`, `rejected`, `incompatible`, `onMessages`, `report`, `dismissNotice`) |
124
- | Type | `Notice`, `SessionView`, `ParticipantView`, `LauncherView`, `LogLine`, `LogSource`, `TimeView`, `CommandView`, `RunOutcome`, `LauncherAnswer` |
125
- | Function | `runOutcome`, `phaseIndex`, `isHolding`, `launcherAnswer` |
121
+ | Kind | Name |
122
+ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
123
+ | Type | `ClientSession` (`session`, `currentTarget`, `currentInstance`, `ready`, `allowed`, `runtime`, `lastEventAt`, `notices`, `rejected`, `incompatible`, `onMessages`, `report`, `dismissNotice`) |
124
+ | Type | `Notice`, `SessionView`, `ParticipantView`, `LauncherView`, `LogLine`, `LogSource`, `TimeView`, `CommandView`, `RunOutcome`, `LauncherAnswer` |
125
+ | Function | `runOutcome`, `phaseIndex`, `isHolding`, `launcherAnswer` |
126
126
 
127
- `ClientSession.allowed` is what the GUI server accepts now (`start`, `stop` and `force`, each with `ok`, a `reason` code and a `message`; the larger `rev` wins; `null` until the server says). `SessionView.launcherState` is the launcher's last `state` event (where the run stands and what it accepts; the larger `rev` wins; `null` until one arrives). `launcherAnswer(launcherState, name)` reads what it says of one operation (`write`, `pause`, ...): `reason` (`null` when the launcher accepts it) and `caution`. A launcher that has not said (no `state` yet, or no entry for the operation) does not accept it (`unsupported`). The front door's `controls` and `variables.bind` read the launcher with it.
127
+ `ClientSession.allowed` is what the GUI server accepts now (`start`, `stop`, `force` and `save`, each with `ok`, a `reason` code and a `message`; `null` until the server says). `SessionView.launcherState` is the launcher's last `state` event (where the run stands and what it accepts; the larger `rev` wins; `null` until one arrives). `launcherAnswer(launcherState, name)` reads what it says of one operation (`write`, `pause`, ...): `reason` (`null` when the launcher accepts it) and `caution`. A launcher that has not said (no `state` yet, or no entry for the operation) does not accept it (`unsupported`). The front door's `controls` and `variables.bind` read the launcher with it.
128
128
 
129
- Server-provided session and variable revisions order snapshots across HTTP and WebSocket; older servers omit them, so cross-transport ordering is best effort. Revisions do not suppress replay, command answers, or terminal operation results.
129
+ Ordered notifications (`session`, `event`, `allowed`, `runtime`, `variables`, `availability`, `operation`, `error`, `dropped`, `synced`) arrive over the single WebSocket stream ordered by `(instance, run_id, stream_seq)`. HTTP mutation endpoints (`api/run`, `api/stop-session`, `api/prepare`, `api/time`, `api/write`) return lightweight acknowledgements while state updates arrive on the WebSocket stream.
130
130
 
131
- The `currentTarget()` method returns the current `{session, instance}` pair, or `null` when it is unknown. `currentInstance()` returns the last authenticated server instance even if no run exists, and retains it while disconnected. On reconnect the client requests the retained replay from the beginning, so a restarted server cannot apply a cursor from another instance. An HTTP-only client can refresh its copy with `fetchSession()` after a server restart.
131
+ The `currentTarget()` method returns the current `{run_id, instance}` pair, or `null` when it is unknown. `currentInstance()` returns the last authenticated server instance even if no run exists, and retains it while disconnected. On reconnect to the same instance and run, the client sends `{instance, run_id, after_stream_seq}` so the server resends only log events after that cursor; when the server instance changes, it starts fresh from the new `hello`.
132
132
 
133
133
  ### Run control
134
134
 
@@ -326,13 +326,17 @@ try {
326
326
  | `clock` | `sim_ms` (the virtual time in ms; `null` before a run), `speed`, `actual_speed` (the speed over about the last second; `null` while paused and right after the start) and `pacing` (`not-paced`, `on-time` or `late`). It changes often, so it is apart from `status` |
327
327
  | `controls` | Whether each operation can be used now: `start`, `stop`, `force_stop`, `pause`, `resume`, `step` (with `min_ms` and `max_ms`), `run_until`, `speed` (with `min`, `max` and `fastest`: whether `'max'` is accepted besides the numbers), and `save` |
328
328
  | `scenario` | The scenario of the current (or last) run: `file`, `name`, `status`, `steps`, `timeline_url`; `null` for a run without one |
329
+ | `runtime` | Persistent hot / cold runtime status: `mode`, `state`, `config`, `reason`, `message` |
330
+ | `prepare(options?)` | Pre-warms a persistent launcher for `file` (`POST api/prepare`) when eligible, or returns `cold` with `reason` |
331
+ | `configs()` | Lists configuration files under the server root (`GET api/configs`) |
332
+ | `recording()` | Returns applied writes of the current or last run as scenario YAML (`GET api/recording`), or `null` if none |
329
333
  | `outside` | The networks that the run's `connect` connected to a real bus ("Connecting a network outside" below) |
330
334
  | `connections({ network }, { file }?)`, `check(intent?, { file }?)` | Where a network can be connected, and the check of an intent without starting it ("Connecting a network outside" below) |
331
335
  | `readConfig({ file }?)` | The text of a configuration file as it is saved, with its `stamp` ("Editing the text of a configuration file" below) |
332
336
  | `check(intent?, { file, text }?)` | With `text`, the check of an unsaved text of the file (the same section) |
333
337
  | `describeAgain({ file, variant }?)` | Describes the participants of the saved file again, and returns that check (the same section) |
334
338
  | `saveConfig({ file, text, stamp })` | Saves a text as the file, with the `stamp` it was read with (`null`: a new file), and returns the new `stamp` (the same section) |
335
- | `run` | `start(intent?, { file }?)`, `stop()` and `forceStop()` |
339
+ | `run` | `start(intent?, { file, onStarted }?)`, `stop()` and `forceStop()` |
336
340
  | `time` | `pause()`, `resume()`, `step(ms)`, `setSpeed(value)` and `runUntil(ms)` |
337
341
  | `variable(ref)` | One variable, by `"ECU.variable"` (cut at the first dot) or `{ peer, name }` (for an ECU whose name has a dot) |
338
342
  | `low`, `close()` | The `GuiClient` of the same connection; `close()` disconnects (a shared connection is made again by the next `connect()`) |
@@ -648,7 +652,7 @@ The `kind` of a `WriteError`:
648
652
  - Resend only once you know that the write was not applied.
649
653
  - This matters most for writes that add to a value (writing twice gives a different result). Writing the same value twice gives the same result.
650
654
 
651
- **Reconnection**: if the connection drops while you wait for a result, the summary after reconnecting (`hello`, `fetchSession()`) tells how it went on. The summary holds every open operation the server keeps, and every operation whose number is `operations_from_seq` or higher (of those the server receives: the operations of a scenario's own writes never come).
655
+ **Reconnection**: if the connection drops while you wait for a result, the summary after reconnecting (`hello`) tells how it went on. The summary holds every open operation the server keeps, and every operation whose number is `operations_from_seq` or higher (of those the server receives: the operations of a scenario's own writes never come).
652
656
 
653
657
  | Your operation | What the library does |
654
658
  | ------------------------------------------------------------------ | --------------------------------------------------------------------------- |