dotnet-websharper / core

WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
593 stars 52 forks source link

Allow records for remoting #1339

Closed granicz closed 10 months ago

granicz commented 1 year ago

If you go with the Remote<'T>.xxx syntax for remoting (as opposed to calling Rpc/Remote-annotated functions seamlessly), 'T has traditionally been a class with instance members representing the remote procedures. Other tickets in the pipeline, most notably #1047 aims to extend this with interfaces, and #1336 changes RPC communication to be transparent and open to other clients.

This ticket adds the ability to use F#/C# records to specify remote capabilities. Roughly speaking, it enables connecting WebSharper clients to Fable.Remoting servers with the same contract notation.