#holochain #p2p #holo #relay-server #networking

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

simple websocket-based message relay client tester

8 releases

0.0.8-alpha Nov 12, 2024
0.0.7-alpha Oct 22, 2024
0.0.6-alpha Aug 12, 2024
0.0.5-alpha Jun 17, 2024
0.0.4-alpha May 24, 2024

#2338 in Network programming

Download history 17/week @ 2024-08-16 9/week @ 2024-09-13 13/week @ 2024-09-20 15/week @ 2024-09-27 3/week @ 2024-10-04 1/week @ 2024-10-11 130/week @ 2024-10-18 18/week @ 2024-10-25 1/week @ 2024-11-01 103/week @ 2024-11-08 21/week @ 2024-11-15 4/week @ 2024-11-22 2/week @ 2024-11-29

130 downloads per month

MIT/Apache

75KB
1.5K 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).

Dependencies

~15–26MB
~502K SLoC