kevinohara80 / nforce

nforce is a node.js salesforce REST API wrapper for force.com, database.com, and salesforce.com
MIT License
474 stars 167 forks source link

Timeout and retry option for faye.Client #29

Closed chicagozer closed 9 years ago

chicagozer commented 11 years ago

Hi, great library! When my client app is deployed into Heroku I notice that it will get disconnected if left idle for a few hours.

Right now I just hardcoded a value into the Client constructor and that seemed to solve the problem.

client = new faye.Client(endpoint, {timeout: 120, retry: 5});

Not sure if you'd ever considering adding a feature to set the option parm but I thought I'd make the suggestion. Thanks!!

kevinohara80 commented 11 years ago

Good idea. I'll mark this as a feature.

joe-spanning commented 10 years ago

this would be a very helpful feature to have.

kevinohara80 commented 9 years ago

Implemented. To be released in 1.0.