node test-bondy-transports.mjs --url http://localhost:18080/ws --realm com.leapsight.test
What it does for each transport (longpoll then sse):
- Connects to Bondy
- Registers an RPC (com.example.test.add2) that adds two numbers
- Subscribes to a topic (com.example.test.onhello)
- Publishes an event to that topic (with exclude_me: false so it receives its own event)
- Calls the RPC it registered
- Unsubscribes, unregisters, and disconnects
- Prints a pass/fail summary
Adjust the URL and REALM defaults at the top if your Bondy instance uses different values.