Fork me on GitHub
#duct
<
2019-02-13
>
Ajay11:02:06

hi, is there any resource to see websocket usage within duct?

weavejester13:02:55

There are adapters for http-kit and aleph, which support websockets. Once you have a server that supports websockets, follow the server's tutorials to use them.

jco12:02:46

Is there documentation anywhere about writing unit tests for duct applications. I'm especially looking for information relating to unit tests for routes and databases. I'm using ataraxy and duct/database.sql.hikaricp.

weavejester12:02:36

Typically you'll write a boundary protocol for databases, and test handlers individually using init-key.

weavejester12:02:22

Routes can be tested individually by seeing what handler Ataraxy resolves to.