jakobilobi / wsstat

Check the status of a WebSocket endpoint.
MIT License
5 stars 1 forks source link

v1.0.1: improved JSON handling #11

Closed jakobilobi closed 1 month ago

jakobilobi commented 1 month ago

This now works as expected, printing a readable response:

wsstat -json '{"id": 1, "jsonrpc": "2.0", "method": "chain_getBlock", "params": ["0xadee41b922394ef145a5374799da8fda18765ec7ac0b3cf1db006a24f1cf05fa"]}' ws://192.168.109.179:9933

...

Response: {"id":1,"jsonrpc":"2.0","result":{"block":{"extrinsics":["0x280403000b906fbe459101", ...