diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-08-05 12:09:37 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-08-05 12:09:37 +0200 |
| commit | 2f5ea5f4982d6276881c9a3342ed8847ebc7d326 (patch) | |
| tree | c405cf24bce11c00d7d453bdd18995cf8cda97aa /content/posts/2020-03-22-simple-sse-based-pubsub-server.md | |
| parent | c181dc5c37435029a0f5f2c51d6f36da4d32afd5 (diff) | |
| download | mitjafelicijan.com-2f5ea5f4982d6276881c9a3342ed8847ebc7d326.tar.gz | |
Moved assets to posts
Diffstat (limited to 'content/posts/2020-03-22-simple-sse-based-pubsub-server.md')
| -rw-r--r-- | content/posts/2020-03-22-simple-sse-based-pubsub-server.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/posts/2020-03-22-simple-sse-based-pubsub-server.md b/content/posts/2020-03-22-simple-sse-based-pubsub-server.md index 8e46138..cf5a5d9 100644 --- a/content/posts/2020-03-22-simple-sse-based-pubsub-server.md +++ b/content/posts/2020-03-22-simple-sse-based-pubsub-server.md | |||
| @@ -38,7 +38,7 @@ simple. We have subscribers that receive messages, and we have publishers that | |||
| 38 | create and post messages. Similar model is also well know pattern that works on | 38 | create and post messages. Similar model is also well know pattern that works on |
| 39 | a premise of consumers and producers, and they take similar roles. | 39 | a premise of consumers and producers, and they take similar roles. |
| 40 | 40 | ||
| 41 |  | 41 |  |
| 42 | 42 | ||
| 43 | **These are some naive characteristics we want to achieve:** | 43 | **These are some naive characteristics we want to achieve:** |
| 44 | 44 | ||
| @@ -74,7 +74,7 @@ page](https://html.spec.whatwg.org/multipage/server-sent-events.html). | |||
| 74 | 74 | ||
| 75 | ### Current browser support | 75 | ### Current browser support |
| 76 | 76 | ||
| 77 |  | 77 |  |
| 78 | 78 | ||
| 79 | Check | 79 | Check |
| 80 | [https://caniuse.com/#feat=eventsource](https://caniuse.com/#feat=eventsource) | 80 | [https://caniuse.com/#feat=eventsource](https://caniuse.com/#feat=eventsource) |
| @@ -142,7 +142,7 @@ which is quite nice and available from Developer Tools under Network tab. | |||
| 142 | > ones. For debugging server events add `console.log` to `server.js` code and | 142 | > ones. For debugging server events add `console.log` to `server.js` code and |
| 143 | > print out events. | 143 | > print out events. |
| 144 | 144 | ||
| 145 |  | 145 |  |
| 146 | 146 | ||
| 147 | ## Server implementation | 147 | ## Server implementation |
| 148 | 148 | ||
| @@ -281,7 +281,7 @@ nicer and maintanable. | |||
| 281 | 281 | ||
| 282 | ### Publisher and subscriber in action | 282 | ### Publisher and subscriber in action |
| 283 | 283 | ||
| 284 | <video src="/assets/simple-pubsub-server/clients.m4v" controls></video> | 284 | <video src="/posts/simple-pubsub-server/clients.m4v" controls></video> |
| 285 | 285 | ||
| 286 | You can download [the code](../simple-pubsub-server/sse-pubsub-server.zip) and | 286 | You can download [the code](../simple-pubsub-server/sse-pubsub-server.zip) and |
| 287 | follow along. | 287 | follow along. |
