websocket stop listening until a new transaction coming
Hi everyone! i have some question about websocket.
I'm using alchemy.ws.on function with filter to listen events on smart contract. It is working well, but at some point the websocket is hang and stop listening to events. But once there is new transaction it's starting to work again. We need the websocket to keep alive.
Is there any way how to solve this issue?
Thanks!
Posted by cod3x.eth over 1 year ago
Plans for support `accountSubscribe` for Solana WS endpoint?
We tried using accountSubscribe https://docs.solana.com/developing/clients/jsonrpc-api#accountsubscribe recently with an Alchemy WS endpoint, but we're getting the following error messages (via the established WS connection):
```
{"id":15,"jsonrpc":"2.0","error":{"code":-32601,"message":"Unsupported subscription method: accountSubscribe"}}
```
Similarly for ping messages (-32601 error codes in dashboard).
Posted by Richard Wu about 2 years ago