From 2f5ea5f4982d6276881c9a3342ed8847ebc7d326 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 5 Aug 2023 12:09:37 +0200 Subject: Moved assets to posts --- content/posts/2020-03-22-simple-sse-based-pubsub-server.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'content/posts/2020-03-22-simple-sse-based-pubsub-server.md') 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 create and post messages. Similar model is also well know pattern that works on a premise of consumers and producers, and they take similar roles. -![How PubSub works](/assets/simple-pubsub-server/pubsub-overview.png) +![How PubSub works](/posts/simple-pubsub-server/pubsub-overview.png) **These are some naive characteristics we want to achieve:** @@ -74,7 +74,7 @@ page](https://html.spec.whatwg.org/multipage/server-sent-events.html). ### Current browser support -![Browser support](/assets/simple-pubsub-server/caniuse.png) +![Browser support](/posts/simple-pubsub-server/caniuse.png) Check [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. > ones. For debugging server events add `console.log` to `server.js` code and > print out events. -![Google Chrome Developer Tools EventStream](/assets/simple-pubsub-server/chrome-debugging.png) +![Google Chrome Developer Tools EventStream](/posts/simple-pubsub-server/chrome-debugging.png) ## Server implementation @@ -281,7 +281,7 @@ nicer and maintanable. ### Publisher and subscriber in action - + You can download [the code](../simple-pubsub-server/sse-pubsub-server.zip) and follow along. -- cgit v1.2.3