aboutsummaryrefslogtreecommitdiff
path: root/posts/2020-03-22-simple-sse-based-pubsub-server.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2021-10-07 21:13:14 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2021-10-07 21:13:14 +0200
commit7f631c493d04ba96e36975365532e2172fec367e (patch)
treefc0c0f81901f77f44c572536b7388babaf2d98ee /posts/2020-03-22-simple-sse-based-pubsub-server.md
parent994c67d522b413fb3184376955a43d4a4f50d716 (diff)
downloadmitjafelicijan.com-7f631c493d04ba96e36975365532e2172fec367e.tar.gz
Added dithered images
Diffstat (limited to 'posts/2020-03-22-simple-sse-based-pubsub-server.md')
-rw-r--r--posts/2020-03-22-simple-sse-based-pubsub-server.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/posts/2020-03-22-simple-sse-based-pubsub-server.md b/posts/2020-03-22-simple-sse-based-pubsub-server.md
index 4256aed..4db3a57 100644
--- a/posts/2020-03-22-simple-sse-based-pubsub-server.md
+++ b/posts/2020-03-22-simple-sse-based-pubsub-server.md
@@ -23,7 +23,7 @@ Publisher Subscriber model is nothing new and there are many amazing solutions o
23 23
24The 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. 24The 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.
25 25
26![How PubSub works](/assets/simple-pubsub-server/pubsub-overview.png) 26![How PubSub works](/assets/simple-pubsub-server/pubsub-overview.png.dith.gif)
27 27
28**These are some naive characteristics we want to achieve:** 28**These are some naive characteristics we want to achieve:**
29 29
@@ -49,7 +49,7 @@ Read more about it on [official specification page](https://html.spec.whatwg.org
49 49
50### Current browser support 50### Current browser support
51 51
52![Browser support](../assets/simple-pubsub-server/caniuse.png) 52![Browser support](../assets/simple-pubsub-server/caniuse.png.dith.gif)
53 53
54Check [https://caniuse.com/#feat=eventsource](https://caniuse.com/#feat=eventsource) for latest information about browser support. 54Check [https://caniuse.com/#feat=eventsource](https://caniuse.com/#feat=eventsource) for latest information about browser support.
55 55
@@ -107,7 +107,7 @@ Google Chrome provides build-in debugging and exploration tool for [Server-Sent
107 107
108> 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. 108> 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.
109 109
110![Google Chrome Developer Tools EventStream](../assets/simple-pubsub-server/chrome-debugging.png) 110![Google Chrome Developer Tools EventStream](../assets/simple-pubsub-server/chrome-debugging.png.dith.gif)
111 111
112## Server implementation 112## Server implementation
113 113