(get-port & [options])
Get an available TCP port according to the supplied options.
make-range
helper in case you need a port in a certain (inclusive) range: (get-port {:port (make-range 3000 3005)})No args return a random available port
Get an available TCP port according to the supplied options. - A preferred port: (get-port {:port 3000}) - A vector of preferred ports: (get-port {:port [3000 3004 3010]}) - Use the `make-range` helper in case you need a port in a certain (inclusive) range: (get-port {:port (make-range 3000 3005)}) No args return a random available port
(make-range from to)
Make a range of ports. Must be in the range 1024...65535
Make a range of ports. Must be in the range 1024...65535
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close