From 70baaeb4e78d12c329a03e929fd30d41730ed2b1 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 28 Aug 2022 05:39:44 +0200 Subject: Moved statis assets and converted all CSS to Tailwind --- 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 0a039e6..939a62d 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 @@ -21,7 +21,7 @@ Publisher Subscriber model is nothing new and there are many amazing solutions o The easiest way to explain this is with diagram bellow. Basic function is 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](/simple-pubsub-server/pubsub-overview.png) +![How PubSub works](/assets/simple-pubsub-server/pubsub-overview.png) **These are some naive characteristics we want to achieve:** @@ -47,7 +47,7 @@ Read more about it on [official specification page](https://html.spec.whatwg.org ### Current browser support -![Browser support](../simple-pubsub-server/caniuse.png) +![Browser support](/assets/simple-pubsub-server/caniuse.png) Check [https://caniuse.com/#feat=eventsource](https://caniuse.com/#feat=eventsource) for latest information about browser support. @@ -105,7 +105,7 @@ Google Chrome provides build-in debugging and exploration tool for [Server-Sent > You can debug only client side events that get received and not the server ones. For debugging server events add `console.log` to `server.js` code and print out events. -![Google Chrome Developer Tools EventStream](../simple-pubsub-server/chrome-debugging.png) +![Google Chrome Developer Tools EventStream](/assets/simple-pubsub-server/chrome-debugging.png) ## Server implementation @@ -234,7 +234,7 @@ One example would be, that we have index page and we want to receive messages ab ### Publisher and subscriber in action - + You can download [the code](../simple-pubsub-server/sse-pubsub-server.zip) and follow along. -- cgit v1.2.3