Last active
June 27, 2024 19:45
-
-
Save object/9c2344d8223011129797e2feba62d236 to your computer and use it in GitHub Desktop.
Fable workshop (2024). Step 8. App.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module App | |
open Elmish | |
open Elmish.React | |
open Elmish.Bridge | |
open Update | |
open View | |
Program.mkProgram init update view | |
|> Program.withBridgeConfig ( | |
Bridge.endpoint "ws://localhost:5000/socket" | |
|> Bridge.withUrlMode Raw | |
|> Bridge.withMapping (fun (x : Shared.Sockets.ClientMessage) -> x |> Messages.MediaSetEvent)) | |
|> Program.withReactSynchronous "elmish-app" | |
|> Program.run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment