events/

directory
v1.1.45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2024 License: Apache-2.0

README

Cloud Events

send manually with nats-pub

send a minimal event manually with nats-pub

nats pub -s 'https://nats1.plugis.com' 'com.plugis.browser' '{"type": "com.plugis.browser.open","data": {"url": "https://www.plugis.com"}, "id": "123","source": "manual","specversion": "1.0"}'
nats pub -s 'https://nats1.plugis.com' 'com.plugis.browser' '{"type": "com.plugis.browser.open","data": {"url": "https://www.google.fr"}, "id": "123","source": "manual","specversion": "1.0"}'

use new nats client

natscli

# create local context
nats context add local --server localhost:4222 --description "Localhost" --select
# add user/password
export EDITOR=vim
nats context edit local

# use local context
nats context select local

# test round-trip time
nats rtt

# get jetstream account info
nats account info

# see jetstream events
nats event --js-advisory

# get event json schema
nats schema show io.nats.jetstream.api.v1.stream_create_response


# subscribe on all topics
nats sub '>'

MQTT client with nats

mosquitto_sub -h update.idronebox.com -t '#' -v -d -u -P

AsyncAPI with CloudEvents

Simulating CloudEvents with AsyncAPI and Microcks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL