+2
-2
README.org
+2
-2
README.org
···
16
16
After running the server, you can subscribe using =curl= with the following command
17
17
18
18
#+begin_src shell
19
-
curl localhost:8000/subscribe
19
+
curl "localhost:8000/subscribe?topic=notification"
20
20
#+end_src
21
21
22
22
Later, you can simply publish a message in the =/publish= endpoint with the following command
23
23
24
24
#+begin_src shell
25
-
curl localhsot:8000/publish -d '{"name": "Tulkdan", "value": 2000 }'
25
+
curl "localhsot:8000/publish?topic=notification" -d '{"name": "Tulkdan", "value": 2000 }'
26
26
#+end_src