Nhowka / Elmish.Bridge

Create client-server Fable-Elmish apps keeping a single mindset
MIT License
138 stars 17 forks source link

Less intrusive API #6

Closed Nhowka closed 6 years ago

Nhowka commented 6 years ago

Should alleviate #5. Feedback is welcome. Pre-releases are up.

Library Version
Elmish.Bridge.Client Nuget
Elmish.Bridge.Suave Nuget
Elmish.Bridge.Giraffe Nuget

cc @cotyar

Nhowka commented 6 years ago

I updated the test project separating the GUI messages and taking it out of the Shared project. The commit is here: https://github.com/Nhowka/TestRemoting/commit/00f5105af337802551a9afad91d509f97d15f848

cotyar commented 6 years ago

@Nhowka yep! Something like this. And that was quick! ;-) Cannot say I grasped it fully yet but general UI concerns are separated from communication layer and stay in Client, which is great!

Another thing I just realised yesterday is that as normal Remoting sends messages in Cmd.ofAsync/ofPromise for remote calls anyway both Bridge and Remoting (RPC) API can share the same remoting abstraction (actually the onSuccess message) leaving the fact it is WebSocket or RPC as abstracted out implementation details. (But this all probably is way too much )) )

Great thanks Diego!

Nhowka commented 6 years ago

Glad you liked! Later today I'll re-check the documentation and release it without the alpha tag.