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-12-08 11:59:37 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2021-12-08 11:59:37 +0100
commitb0b8f7ffbf563f341745e86bfe85f080f6a8db27 (patch)
treec56029d1d0939d899a622c60309dfccd0b84e7bb /posts/2020-03-22-simple-sse-based-pubsub-server.md
parent2a373fcbb6dc6eb864f1c9f3351efe4b5ed2abf0 (diff)
downloadmitjafelicijan.com-b0b8f7ffbf563f341745e86bfe85f080f6a8db27.tar.gz
A bunch of changes
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 4db3a57..4256aed 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.dith.gif) 26![How PubSub works](/assets/simple-pubsub-server/pubsub-overview.png)
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.dith.gif) 52![Browser support](../assets/simple-pubsub-server/caniuse.png)
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.dith.gif) 110![Google Chrome Developer Tools EventStream](../assets/simple-pubsub-server/chrome-debugging.png)
111 111
112## Server implementation 112## Server implementation
113 113