Joohansson / NanoRPCProxy

A relay, limiter, token and protection system for Nano node RPC & websocket interface

Home Page:https://api.nanos.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow WebSocket subscription without specifying account filter

cenkalti opened this issue · comments

https://docs.nano.org/integration-guides/websockets/#subscribeunsubscribe

I would like to get confirmations for all accounts without specifying any account filter but that does not work currently.

This was a design choice because of traffic. If 1000 users subscribe to all accounts and there is a 100 BPS spam attack to ANY account. It would have to send 100,000 messages per second. I don't think I will implement that, if you don't have a counter-argument?

I thought the same. I built a payment gateway Accept Nano and was testing compatibility with NanoRPCProxy. Instead managing the account list locally, subscribing for all accounts and filtering on client side was much easier but that would increase the bandwidth consumption on both the gateway and the proxy.