You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blocknative logs a warning in the console that the Websocket connection is closed before the connection is established. In this particular example, the warning occurs at line 226 in the web3enabled.ts file, which is where is initialize the instance of bnc-notify and is within the connect() function.
McFly thinks this is causing our app to prevent the loading of data.
Potentially related to the double-load of most pages on init?
The text was updated successfully, but these errors were encountered:
Here's another example where the warning occurs at a different point in the stack. Specifically at line 159 in the web3enabled.ts file, which is where the notify instance is configured. In blocknative's documentation, it says if networkID is passed as a configuration all other wss connections will be closed. Maybe this is causing an issue?
Every time we fetch an asset price from Chainlink price feeds we're call readonlyweb3() to get a new instance of Web3. Is calling this for every asset price causing the previous connection to break, and therefore the warning? What if we just passed an instance of Web3, calling it a single time from the parent component, vs creating a new Web3 instance every time we fetch a price?
I suppose we could take this even further and just instantiate a new version of Web3 once for the entire application on Init and pass that down to child components as necessary.
Blocknative logs a warning in the console that the Websocket connection is closed before the connection is established. In this particular example, the warning occurs at line 226 in the web3enabled.ts file, which is where is initialize the instance of bnc-notify and is within the
connect()
function.McFly thinks this is causing our app to prevent the loading of data.
Potentially related to the double-load of most pages on init?
The text was updated successfully, but these errors were encountered: