Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
hathorLib.WebSocketHandler.setup();
hathorLib.WebSocketHandler.on('wallet', this.handleWebsocket);
hathorLib.WebSocketHandler.on('storage', this.handleWebsocketStorage);
hathorLib.axios.registerNewCreateRequestInstance(createRequestInstance);
hathorLib.WebSocketHandler.on('addresses_loaded', this.addressesLoadedUpdate);
hathorLib.WebSocketHandler.on('is_online', this.isOnlineUpdate);
hathorLib.WebSocketHandler.on('reload_data', this.reloadData);
}
componentDidMount() {
hathorLib.WebSocketHandler.setup();
hathorLib.WebSocketHandler.on('wallet', this.handleWebsocket);
hathorLib.WebSocketHandler.on('storage', this.handleWebsocketStorage);
hathorLib.axios.registerNewCreateRequestInstance(createRequestInstance);
hathorLib.WebSocketHandler.on('addresses_loaded', this.addressesLoadedUpdate);
hathorLib.WebSocketHandler.on('is_online', this.isOnlineUpdate);
hathorLib.WebSocketHandler.on('reload_data', this.reloadData);
}