(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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |