First, you’ll need to obtain an endpoint from https://pubsub.cat/endpoints.json.
[!NOTE] The TLS endpoint is merely to allow for usage in “secure contexts” and does not provide real security as the private key we use is public.
+
followed by the topic. For example, +test
to subscribe to topic test
.
test
would be a frame containing test:Hello
.-
followed by the topic.^
, the topic, :
, and the message. For example, ^test:Hello
to publish “Hello” to topic test
.curl notls.pubsub.cat/pub?topic=test --data "Hello"
to send “Hello” to every subscriber of test
.