Nhowka / Elmish.Bridge

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

BroadcastServer doesn't work #43

Closed Alkasai closed 2 years ago

Alkasai commented 2 years ago

I tried broadcasting message using BroadcastServer, but it is not being received on the server. Looking at the code here

        default sh.BroadcastServer(msg: 'inner) =
        sh.SendClientIf (fun _ -> true) msg

shouldn't that be SendServerIf instead?

        default sh.BroadcastServer(msg: 'inner) =
        sh.SendServerIf (fun _ -> true) msg

I'm using Elmish.Bridge.Server version 6.0.0

Nhowka commented 2 years ago

Yes, my mistake! I'll upload a new version soon with the fix

Alkasai commented 2 years ago

Awesome! Thank you!

Alkasai commented 2 years ago

There you go :) https://github.com/Nhowka/Elmish.Bridge/pull/44

Nhowka commented 2 years ago

Aww, thanks! Already uploaded the nuget files with the mentioned fix