These are chat archives for YoEight/eventstore

May 2017
May 05 2017 20:58
Hey, is there a reason I'm not getting any events from the all stream? Sending events to a stream "abc" while I have this code running:
{-# LANGUAGE OverloadedStrings #-}

module Main where

import Database.EventStore

main :: IO ()
main = do
  conn <- connect defaultSettings (Static "" 1113)
  sub  <- subscribeToAll conn False
  print $ isSubscribedToAll sub
  print $ getSubStream sub

  let loop = do
        event <- nextEvent sub
        print "Event!"

  shutdown conn
  waitTillClosed conn
May 05 2017 21:12
isSubscribedToAll and getSubStream seem to work (True and "")
Yorick Laupa
May 05 2017 22:14
You may not be authenticated. By default, reading $all need to be admin. Update Settings accordingly and you will receive events. Also, you need to do stuff (like writing events), in order to $all to get updated
The lack of feedback from the driver, if you actually needed to get authenticated may need a patch though. If it's confirmed, I will fix it.