/railway-info-fsharp

F# clients for railway trip information

Primary LanguageF#MIT LicenseMIT

F# clients for JSON-RPC server

F# clients for the node server apps

The node server app is started from the client library.

F# client and node server can run on Linux and Windows.

Use cases

Example use cases for the client library:

Configuration of node server app

The server is configured via the following options

type ClientOptions =
    {
      /// path to node executable, default is "/usr/bin/node"
      node: string
      /// path of scriptfile, default is "../hafas-jsonrpc-server/build/index.js"
      script: string
      /// show transfer messages, default is false
      verbose: bool }

(De)Serialization of F# types

The (de)serialization of F# types from/to JsonRpc messages is done with the following steps:

F# type defintions from TypeScript declaration file

The types are generated from

with the following steps (see restore.sh):