I'm running a node in dev mode: ./substrate/target/release/substrate --dev --tmp --ws-external
My client connection code:
provider = new WsProvider(wsProvider)
api = await new ApiPromise({ provider }).isReady;
I am testing an app using polkadot js api, and often connecting via ws. This has worked fine, except now when I connect it says the node is at full capacity:
2022-04-19 17:03:12 Unable to build WebSocket connection WS Error <Capacity>: Unable to add another connection to the event loop.
I assumed the disconnect
event is fired when the client app closes, I'm not sure why it is full.
netstat
shows a few ESTABLISHED connections from my ip, not sure why as I'm not currently even running the app.
--ws-max-out-buffer-capacity=99999 --rpc-max-payload=99999
or something similar? Does this resolve the issue?