lib/ig_markets/dealing_platform/streaming_methods.rb
# Connects the streaming session. Raises a `Lightstreamer::LightstreamerError` if an error occurs.
Connects the streaming session. Raises a `Lightstreamer::LightstreamerError` if an error occurs.
Connects the streaming session . Raises a ` Lightstreamer :: LightstreamerError ` if an error occurs .
def connect
        @lightstreamer&.disconnect
        @lightstreamer = Lightstreamer::Session.new username: username, password: password, server_url: server_url
        @lightstreamer.on_error { |error| @on_error_callbacks.each { |callback| callback.call error } }
        @lightstreamer.connect
      end
def connect @lightstreamer &. disconnect @lightstreamer = Lightstreamer :: Session . new username : username , password : password , server_url : server_url @lightstreamer . on_error { | error | @on_error_callbacks . each { | callback | callback . call error } } @lightstreamer . connect end
Connects the streaming session.
Connects the streaming session .