paint-brush
How We Handle Blockchain Reconnects In web3jsby@Swati@1989
283 reads

How We Handle Blockchain Reconnects In web3js

by Swati Bucha5mFebruary 24th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

There’s no inbuilt reconnect functionality in Web3JS to handle blockchain disconnects or restarts. Usually, when there is a connection drop, NodeJS service needs to be restarted as well to connect to the blockchain again. In this article, we’ll learn how to handle the connection between NodeJS and blockchain in production. The method described below works for Web3J version 1.0.0-beta, but it should be good for the stable 1.2* versions as well.
featured image - How We Handle Blockchain Reconnects In web3js
Swati Bucha HackerNoon profile picture
Swati Bucha

Swati Bucha

@Swati@1989

Content Head at Skeps. Crafting stories that seek to inspire customers.

About @Swati@1989
LEARN MORE ABOUT @SWATI@1989'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Swati Bucha HackerNoon profile picture
Swati Bucha@Swati@1989
Content Head at Skeps. Crafting stories that seek to inspire customers.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite