有什么合适的包能接收 json-rpc 的异步推送吗?

2020-04-15 14:29发布

有个 json-rpc 的订阅异步获取,用 wscat 命令行获取如下:

$ wscat -c ws://localhost:1234
connected (press CTRL+C to quit)
> {"id":1, "method":"call", "params":[0,"set_callback",[1]]}
< {"id":1,"jsonrpc":"2.0","result":null}
< {"method":"notice","params":[1,["001492b724a04d5871e1a4f387b2d1933ca31ce4"]]}
< {"method":"notice","params":[1,["001492b8a0e5b3ab604e1f735a2bd9d4f43379d8"]]}
< {"method":"notice","params":[1,["001492b91e6c600dfca3c906b29128bafc9d9c40"]]}
< {"method":"notice","params":[1,["001492ba18d2a0fb63482964b5f5614283cb2459"]]}
< {"method":"notice","params":[1,["001492bb45725b1ae8adad2fe1a063d04982d8c8"]]}
>

有哪些库、方法、程序实例可以订阅等待获取的这些数据,再传与 laravel 做处理,再输出的?


登录 后发表评论
1条评论