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
I would like to implement a retry mecanism,
I assume Jsforce.Connection is the object to start with.
I see it extends a EventEmitter.. So what I'm trying (expecting in a way) is something like this:
connection.on('connection',function(){this.logger.log('@@@@@ Connected to Salesforce @@@@');});connection.getConnection().on('disconnect',function(){this.logger.log('@@@@@ Disconnected from Salesforce @@@@');});// there is only 'connection:new' being emitted in the code as far as I searched, but it does not work neither
I don't know if these are events proposed by JSForce, these are not typed,
Furthermore Is this the right way ? to handle reconnections ?
Thanks to everyone in advance.
The text was updated successfully, but these errors were encountered:
hey, sorry for the late reply, triaging old issues.
the connection:new event is emitted when creating an instance of Connection on the jsforce class, not on API requests.
Were you trying to handle network errors? If so, jsforce v3 added support for retrying on common network errors:
I would like to implement a retry mecanism,
I assume
Jsforce.Connection
is the object to start with.I see it extends a
EventEmitter
.. So what I'm trying (expecting in a way) is something like this:I don't know if these are events proposed by JSForce, these are not typed,
Furthermore Is this the right way ? to handle reconnections ?
Thanks to everyone in advance.
The text was updated successfully, but these errors were encountered: