summaryrefslogtreecommitdiffstats
path: root/src/Main.elm
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2021-11-05 09:11:38 +0200
committerJan Tuomi <jan.tuomi@valuemotive.com>2021-11-05 09:11:38 +0200
commitb8cdee378647f81bbbbc5aafd4c58b1e15cb0192 (patch)
tree9deb9c4edfd8172f548fefd4d2aa2d0865f244d3 /src/Main.elm
parent32a6ffc0c117b4ef28ea9f74517de77f8fafff1a (diff)
Get posts on 5s interval
Diffstat (limited to 'src/Main.elm')
-rw-r--r--src/Main.elm5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Main.elm b/src/Main.elm
index 35cf413..75bc498 100644
--- a/src/Main.elm
+++ b/src/Main.elm
@@ -225,7 +225,10 @@ composePost model =
subscriptions : Model -> Sub Msg
subscriptions _ =
- Time.every 5000 SetNowPosix
+ Sub.batch
+ [ Time.every 5000 SetNowPosix
+ , Time.every 5000 (\_ -> GetPosts)
+ ]