(accept env at & {:as opts})
env :: result of (event-loop) at :: map of {:host <String> :port <int>}, :host defaults to wildcard address Possible opts are:
env :: result of (event-loop) at :: map of {:host <String> :port <int>}, :host defaults to wildcard address Possible opts are: - :accept-chan :: <chan> to populate with accepted client sockets, defaults to (chan) Following options will be translated to client sockets created by accept: - :read-chan-fn :: no-args fn returning <chan>, will be used to create :read-chan for accepted sockets - :write-chan-fn :: no-args fn returning <chan>, will be used to create :write-chan for accepted sockets - :heartbeat-period :: Heartbeat interval, ms. Default value is 5000 - :heartbeat-timeout :: When to consider connection stale. Default value is (* 4 heartbeat-period)
(connect env to & {:as opts})
env :: result of (event-loop) to :: map of {:host <String> :port <int>} Possible opts are:
env :: result of (event-loop) to :: map of {:host <String> :port <int>} Possible opts are: - :read-chan :: <chan> to populate with reads from socket, defaults to (chan) - :write-chan :: <chan> to schedule writes to socket, defaults to (chan) - :heartbeat-period :: Heartbeat interval, ms. Defaults to 5000 - :heartbeat-timeout :: When to consider connection stale. Default value is (* 4 heartbeat-period)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close