Sample for using Saturn with websockets and Fable/Elmish. Initial data is loaded from the server. Then press the big green button to start "background job" (i.e. timer) that will generate new data and push it to the client with web socket.
Second big green button starts another "background job" that will push images url into the client and display the image in the UI.
You'll need to install the following pre-requisites in order to build SAFE applications
- The .NET Core SDK
- FAKE 5 installed as a global tool
- The Yarn package manager (you an also use
npm
but the usage ofyarn
is encouraged). - Node LTS installed for the front end components.
- If you're running on OSX or Linux, you'll also need to install Mono.
To concurrently run the server and the client components in watch mode use the following command:
fake build -t Run
- fake not found - If you fail to execute
fake
from command line after installing it as a global tool, you might need to add it to yourPATH
manually: (e.g.export PATH="$HOME/.dotnet/tools:$PATH"
on unix) - related GitHub issue