#holochain #client #p2p #holo #specification #sbd-o-bahn-client-tester

bin+lib sbd-o-bahn-client-tester

simple websocket-based message relay client tester

15 releases

new 0.2.0 May 1, 2025
0.0.11-alpha2 Mar 25, 2025
0.0.9-alpha Apr 8, 2025
0.0.8-alpha Nov 12, 2024
0.0.5-alpha Jun 17, 2024

#1860 in Network programming

Download history 75/week @ 2025-01-09 33/week @ 2025-01-16 1/week @ 2025-02-06 1/week @ 2025-02-20 129/week @ 2025-02-27 25/week @ 2025-03-06 165/week @ 2025-03-20 59/week @ 2025-03-27 223/week @ 2025-04-03 38/week @ 2025-04-10 2/week @ 2025-04-17 39/week @ 2025-04-24

307 downloads per month

MIT/Apache

86KB
2K SLoC

Test suite for sbd client compliance.

The command supplied to the run function must:

  • Print on stdout: CMD/READY when it is ready to receive commands.
  • Listen on stdin for:
    • CMD/CONNECT/id/<addr-list> where id is a numeric identifier, addr-list is a slash separated list of addresses (ip:port) e.g. CMD/CONNECT/42/127.0.0.1:44556/[::1]:44557.
    • CMD/SEND/id/<pubkey>/<msg-hex> where msg-hex is hex encoded bytes to be sent to the hex encoded pubkey.
    • CMD/CLOSE/id/<pubkey> close the connection and print a response close
  • Write to stdout:
    • CMD/CONNECT/<pubkey> where pubkey is a hex encoded pubkey of the client that was connected.
    • CMD/RECV/id/<pubkey>/<msg-hex> where msg-hex is hex encoded bytes received from the remote hex encoded pubkey peer.
    • CMD/CLOSE/id/<pubkey> if the connection closes (including when the listen close command was called).

Simple websocket-based message relay servers and clients.

SBD doesn't stand for anything. Imagine it however you like. Secure By Design... STUN By Default... Silent But Deadly...

Dependencies

~24–38MB
~714K SLoC