package resp-server
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
SERVER defines the interface for a server
type command =
Backend.t ->
Backend.client ->
string ->
Value.t array ->
Value.t option Lwt.t
The signature of a command function
val create :
?auth:Auth.t ->
?default:command ->
?commands:(string * command) list ->
?host:string ->
?tls_config:Conduit_lwt_unix.tls_server_key ->
Conduit_lwt_unix.server ->
Backend.t ->
t Lwt.t
Create a new server instance.
- auth sets the authentication
- default sets the default command handler
- commands sets the commands for the server
- host is the hostname of the server (ex 127.0.0.1)
- tls_config configures ssl for the server - see conduit-lwt-unix for more inforation
- The server type is also inherited from Conduit, but typically you will use either `TCP (`PORT $PORTNUMBER) or `Unix_domain_socket (`File $FILENAME)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>