open Elmish
open Elmish.Bridge
let server =
Bridge.mkServer Shared.endpoint init update
|> Bridge.run Giraffe.server
let webApp = // <---- ??? not referenced
choose [
server // <---- referenced twice?
route "/" >=> htmlFile "/pages/index.html" ]
let app =
application {
router server // <---- ??? use_router? server referenced twice?
disable_diagnostics
app_config Giraffe.useWebSockets
url uri
}
run app
In this section
Should that read instead
use_router webApp
?