polygon-io / client-js

The official JS client library for the Polygon REST and WebSocket API.
MIT License
190 stars 59 forks source link

Timeout? #116

Closed amouly closed 1 year ago

amouly commented 1 year ago

I can not find a way to set a timeout on the API client, is there a way to do so?

Recently Polygon.io services went down and the timeout looks to be 1 and a half minute.

Is there a way we can reduce this timeout?

amouly commented 1 year ago

@timetraveler328 I do not see Version 7 released, and also, can you add documentation on how to set the timeout value?

timetraveler328 commented 1 year ago

@amouly v7 should be available, you can find an example of using request options to configure a timeout in the configuration example