The gateway and synchronous functions seem to only pass nil messages to the handler functions (though the default println handler does print the actual reply message to stdout, so connectivity is working.)
None of the examples seem to use them. Are they deprecated?
For example:
(defonce connection (gateway/connect 2 "localhost" default-paper-port println))
(class (ib-re-actor-976-plus.synchronous/server-time connection))
;; => nil
;; though println does render the time message to stdout
(def print-handlers
{:data #(println "Received:" %)
:end #(println "End of the request.")
:error #(println "Error: " %)})
(gateway/request-current-time connection print-handlers)
;; =>
;; Received: nil
;; End of the request.
;;
;; println does print the full reply message to stdout
The gateway and synchronous functions seem to only pass nil messages to the handler functions (though the default
println
handler does print the actual reply message to stdout, so connectivity is working.)None of the examples seem to use them. Are they deprecated?
For example: