Commit 8b00bb4
Add RPC tester interface to example app (#1085)
Adds a new button on the bottom control bar for the "rpc tester":
<img width="100" height="103" alt="Screenshot 2026-05-15 at 11 09 19 AM"
src="https://github.com/user-attachments/assets/5d7db331-f817-4321-9a22-4834d0966612"
/>
When clicked, it opens up a new panel which has two sections:
<img width="508" height="855" alt="Screenshot 2026-05-15 at 11 09 04 AM"
src="https://github.com/user-attachments/assets/0ea49592-18d3-49b9-a603-959a8d8de175"
/>
The top section allows sending RPC messages - select a destination
participant, topic, and enter a payload, and click "Send". Note that
there are two payload presets - `"hello world"` and `"X" * 20000` to
provide some easy to generate data to test some edge cases.
The bottom section lets you configure rpc handlers. Enter a rpc handler
topic and a static response, and submit. Then when this participant
receives a RPC request, the request will be responded to with the static
response. This static response also has the same payload presets as the
request.
> [!WARNING]
> This pull request was LLM generated and has only been lightly reviewed
by a human. The author has tested this and confirms it works in the
happy path, but no other validation has been done.
>
> A more thorough review of this needs to occur before it could be
merged.
---------
Co-authored-by: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com>1 parent 8f86c55 commit 8b00bb4
2 files changed
Lines changed: 47 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
63 | 94 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 95 | | |
79 | 96 | | |
80 | 97 | | |
| |||
97 | 114 | | |
98 | 115 | | |
99 | 116 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 117 | + | |
104 | 118 | | |
105 | 119 | | |
106 | 120 | | |
107 | 121 | | |
108 | 122 | | |
| 123 | + | |
| 124 | + | |
109 | 125 | | |
110 | 126 | | |
111 | 127 | | |
| |||
193 | 209 | | |
194 | 210 | | |
195 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
196 | 217 | | |
197 | | - | |
| 218 | + | |
198 | 219 | | |
199 | 220 | | |
200 | 221 | | |
| |||
321 | 342 | | |
322 | 343 | | |
323 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
324 | 349 | | |
| 350 | + | |
325 | 351 | | |
326 | 352 | | |
327 | 353 | | |
| |||
401 | 427 | | |
402 | 428 | | |
403 | 429 | | |
404 | | - | |
| 430 | + | |
405 | 431 | | |
406 | 432 | | |
407 | 433 | | |
| |||
0 commit comments