Open RocketPuppy opened 8 years ago
I'm not sure what the right approach is yet here. It might be to just send arbitrary messages along the socket at some fixed (or random, bounded) interval. Check out http://hackage.haskell.org/package/servant-mock-0.7/docs/src/Servant-Mock.html#line-157 for inspiration (code below)
instance HasMock Raw context where mock _ _ = \_req respond -> do bdy <- genBody respond $ responseLBS status200 [] bdy
I'm not sure what the right approach is yet here. It might be to just send arbitrary messages along the socket at some fixed (or random, bounded) interval. Check out http://hackage.haskell.org/package/servant-mock-0.7/docs/src/Servant-Mock.html#line-157 for inspiration (code below)