kegaretail / react-native-rabbitmq

29 stars 56 forks source link

How to set connection timeout? #34

Open danielfigueroaj opened 4 years ago

danielfigueroaj commented 4 years ago

Is there a way to set a timeout to the connect() method?

I've seen the default timeout is 60 seconds, but I would like to have a shorter interval, i.e 10 seconds, and if no connection then get the connected.on('error') callback.

Thanks!