elmish / sample-react-counter-ws

(Borked) needs updated bindings
Other
0 stars 3 forks source link
websockets

Counter Modified to use WebSockets

This is a modified version of the Elmish counter sample illustrating the use of WebSockets in a Fable app.

Client

Uses Fable.Import.Browser.WebSocket type.

Server

Uses fable-import-ws to fire WebSockets events from an Express node HTTP server, all from Fable-generated code.

Build and running the sample

  1. Install shared sample dependencies: ./build.sh on *nix or build on Windows
  2. cd src
  3. Start Express server: yarn run start
  4. open http://localhost:8080