package stog
Module Stog.Server_mode
Registering a server
val http_url : string refDefault URL, modified by command line option
val ws_url : string refDefault websocket URL, modified by command line option
val pub_http_url : string option refOptional public HTTP URL, modified by command line option
val pub_ws_url : string option refOptional public websocket URL, modified by command line option
type server_mode = [ | `Multi of string list -> unit| `Single of (unit -> Types.stog) -> Types.stog -> unit
]Multi server: handling users, sessions with editor and preview for each session.
Single: Simple preview server.
val server_mode : server_mode option refval set_single :
((unit -> Types.stog) ->
Types.stog ->
http_url:Url.url_config ->
ws_url:Url.url_config ->
unit) ->
unitval set_multi :
(http_url:Url.url_config -> ws_url:Url.url_config -> string list -> unit) ->
unit