ruby-mqtt icon indicating copy to clipboard operation
ruby-mqtt copied to clipboard

It is now possible to specify a timeout when opening a TCPSocket.

Open hiroeorz opened this issue 3 months ago • 0 comments

By specifying as follows, you can now specify the timeout time in seconds when MQTTClient opens a TCPSocket.

client = MQTT::Client.connect(
  :host => 'myserver.example.com',
  :connect_timeout => 15
)

The default timeout period is 30 seconds.

hiroeorz avatar May 21 '24 02:05 hiroeorz