on master help sign in
a couple more examples.md changes

- add note about /lib/server/hoon - rephrase to imply that EventSource isn't the only javascript SSE handler

commit0a3be377f59e1645bdebf36e93fa32702f6cd050 authortinnus-napbus <admin@tinnus-napbus.xyz> dateFri 25 Jun 2021, 16:08 (5 years ago) parentc6b9bc1
1 file changed+5−1
arvo/eyre/examples.md+5−1
arvo/eyre/examples.md+5−1
@@ -94,7 +94,7 @@ id: 0
9494data: {"ok":"ok","id":1,"response":"poke"}
9595```
9696
97−Normally this event stream would be handled by an EventSource object in Javascript or the equivalent in whatever other language you're using. Here, though, we'll continue using `curl` for simplicity.
97+Normally this event stream would be handled by an EventSource object or similar in Javascript or the equivalent in whatever other language you're using. Here, though, we'll continue using `curl` for simplicity.
9898
9999Leaving the event stream connection open, in another shell session on unix we'll try subscribing to the watch path of a Gall agent - the `/updates` watch path of `graph-store` in this case.
100100
@@ -268,6 +268,8 @@ You can refer to the [%connect](@/docs/arvo/eyre/tasks.md#connect) section of th
268268
269269Here's a Gall agent that demonstrates this method. It binds the URL path `/foo`, serves `<h1>Hello, World!</h1>` for GET requests and a `405` error for all others. It also prints debug information to the terminal as various things happen.
270270
271+Note that this example does a lot of things manually for demonstrative purposes. In practice you'd likely want to use a library like `/lib/server.hoon` to cut down on boilerplate code.
272+
271273`eyre-agent.hoon`
272274
273275```hoon
@@ -490,6 +492,8 @@ You can refer to the [%serve](@/docs/arvo/eyre/tasks.md#serve) section of the [I
490492
491493Here's a very simple generator that will just echo back the body of the request (if available) along with the current datetime. You can save it in the `/gen` directory and `|commit %home`.
492494
495+Note that this example does some things manually for demonstrative purposes. In practice you'd likely want to use a library like `/lib/server.hoon` to cut down on boilerplate code.
496+
493497`eyre-gen.hoon`
494498
495499```hoon