Hi All,
i appear to be having a problem with receiving notications from a speedy bsc node via websockets. I was previously receiving notifications, but it stopped at some point today. This is a snippet of code that runs as a background service in a .net5 app & uses nethereum to connect to a speed bsc node websocket.
var clientws = new StreamingWebSocketClient("wss://speedy-nodes-nyc.moralis.io/SOME RANDOM GUID/bsc/mainnet/ws");
var transferToken = Event<TransferEventDTO>.GetEventABI().CreateFilterInput();
var ethLogsTokenTransfer = new EthLogsObservableSubscription(clientws);
ethLogsTokenTransfer.GetSubscriptionDataResponsesAsObservable().Buffer(100).Subscribe(async log =>
{
//handle batches of 100.
//send batches of 100 transfer events to frontend
await _hub.Clients.All.SendAsync("NEW_TOKEN_TRANSFER", transfers);
}
await clientws.StartAsync();
await ethLogsTokenTransfer.SubscribeAsync(transferToken);
Thanks in advance