| commit | 4f2b114ff2c67613b2c29a74f8de7cbacd360c4e | [log] [tgz] |
|---|---|---|
| author | Nate Bosch <nbosch@google.com> | Wed Jul 05 17:59:39 2023 -0700 |
| committer | GitHub <noreply@github.com> | Wed Jul 05 17:59:39 2023 -0700 |
| tree | 72d27a10b4d7cf107e0d602120519983116a7468 | |
| parent | 4e2db2e8b81b510490054fe62340f9c6202dd697 [diff] |
Fix the example to act as a server (dart-lang/json_rpc_2#100) Fixes a bug mentioned in dart-lang/json_rpc_2#50 Both the client and server examples were shown with `WebSocketChannel.connect`. Update the server to bind the `HttpServer` instead of trying to connect to a server that hasn't been started. Add a `client.close()` call to the example so the VM does not continue running.