ClojureDocs

Nav

Namespaces

start-server

  • (start-server opts)
Start a socket server given the specified opts:
  :address Host or address, string, defaults to loopback address
  :port Port, integer, required
  :name Name, required
  :accept Namespaced symbol of the accept function to invoke, required
  :args Vector of args to pass to accept function
  :bind-err Bind *err* to socket out stream?, defaults to true
  :server-daemon Is server thread a daemon?, defaults to true
  :client-daemon Are client threads daemons?, defaults to true
 Returns server socket.