Skip to content

Instantly share code, notes, and snippets.

@dasch
Created January 13, 2016 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasch/2453725ac0d9def76b1e to your computer and use it in GitHub Desktop.
Save dasch/2453725ac0d9def76b1e to your computer and use it in GitHub Desktop.
import ServiceDiscovery
import ProfileService exposing (ProfileService)
profileService : Signal ProfileService
profileService =
let
nodes : Signal (List String)
nodes = ServiceDiscovery.discover "profile"
in
Signal.map ProfileService.init nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment