github.com/dominant-strategies/go-quai@v0.28.2/rpc/testdata/subscription.js (about) 1 // This test checks basic subscription support. 2 3 --> {"jsonrpc":"2.0","id":1,"method":"nftest_subscribe","params":["someSubscription",5,1]} 4 <-- {"jsonrpc":"2.0","id":1,"result":"0x1"} 5 <-- {"jsonrpc":"2.0","method":"nftest_subscription","params":{"subscription":"0x1","result":1}} 6 <-- {"jsonrpc":"2.0","method":"nftest_subscription","params":{"subscription":"0x1","result":2}} 7 <-- {"jsonrpc":"2.0","method":"nftest_subscription","params":{"subscription":"0x1","result":3}} 8 <-- {"jsonrpc":"2.0","method":"nftest_subscription","params":{"subscription":"0x1","result":4}} 9 <-- {"jsonrpc":"2.0","method":"nftest_subscription","params":{"subscription":"0x1","result":5}} 10 11 --> {"jsonrpc":"2.0","id":2,"method":"nftest_echo","params":[11]} 12 <-- {"jsonrpc":"2.0","id":2,"result":11}