(create! options)
Creates a new web-socket server, starts it and returns it.
Options: :host an ip/host where to bind the server :port where to bind the server :port-range can be specified in options to try higher ports if :port happens to be taken.
Returned server object can be used for subsequent destroy! and wait-for-first-client calls.
Creates a new web-socket server, starts it and returns it. Options: :host an ip/host where to bind the server :port where to bind the server :port-range can be specified in options to try higher ports if :port happens to be taken. Returned server object can be used for subsequent destroy! and wait-for-first-client calls.
(wait-for-first-client server)
(wait-for-first-client server timeout-ms)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close