Sha256: 27da9dbee7d653ba4a80aa9ebbab1dcc79f964338f8dd86661dbf60a52af1104

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

# These Alerts are always active
module IB
	class Alert

		def self.alert_2102 msg
			# Connectivity between IB and Trader Workstation has been restored - data maintained.
			sleep 0.1  #  no need to wait too long.
			if IB::Gateway.current.check_connection
				IB::Gateway.logger.debug { "Alert 2102: Connection stable" }
			else
				IB::Gateway.current.reconnect
			end
		end
		end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ib-extensions-1.3.1 lib/ib/alerts/gateway-alerts.rb
ib-extensions-1.3 lib/ib/alerts/gateway-alerts.rb
ib-extensions-1.2 lib/ib/alerts/gateway-alerts.rb
ib-extensions-1.1 lib/ib/alerts/gateway-alerts.rb
ib-extensions-1.0 lib/ib/alerts/gateway-alerts.rb