|
14:17
librasteve_ joined
17:01
coleman joined
|
|||
| coleman | does Cro support SSE? github.com/librasteve/Air/issues/4...3909579354 | 17:02 | |
| patrickb | I've. just quickly read up on them. | 17:10 | |
| IIUC, it's a *client side* API on top of a plain XHR that is kept open. | 17:11 | ||
| So on the server side, it's just a normal request that the server is supposed to simply not close, but keeps pushing data into. | |||
| If that is true, then (without trying) I think Cro already allows to do that. | 17:16 | ||
| Simply set the response body to a supply and then emit blobs into it. | |||
| See cro.raku.org/docs/reference/cro-http-message at the very bottom. | 17:18 | ||
| I didn't look into how the data needs to look that is sent via this non closing response, but that's probably a trivial issue. | 17:20 | ||
| nemokosch | I wonder how this website is hosted | 17:27 | |
|
17:47
arunvickram joined
|
|||
| arunvickram | coleman: it does support sending text/event-stream responses back to the client, my DataStar library basically generates a text/event-stream response | 17:49 | |
| i haven't tested SSE with channels/supplies yet but to my understanding it does work | 17:50 | ||
|
17:50
arunvickram left
|
|||
| coleman | thanks folks | 18:00 | |
| patrickb | just found raku-advent.blog/2022/12/08/day-8-...now-later/ | 18:08 | |
|
18:26
arunvickram joined
18:41
arunvickram left
21:17
librasteve_ left
21:54
jnthn left,
jnthn joined
|
|||